Prison officers are falling ill after inhaling "legal highs" used by inmates.
Union bosses reported that staff are being taken to hospital suffering from the effects of breathing in the fumes of new psychoactive substances (NPS) such as Spice and Black Mamba, which mimic the effects of cannabis.
In one incident last week, seven officers reported suffering ill effects, according to the Prison Officers Association (POA).
Steve Gillan, general secretary of the union, said they were searching a cell when they came across a large quantity of NPS.
"They all then complained of nausea. They were seen by the healthcare department and signed off duty," he said.
Anonymous accounts from officers laid bare the impact of NPSs. One described noticing a "sweet smell" and "smoky atmosphere" before starting to feel unwell, saying his heart was racing and his head felt like it would "pop". The officer could not remember his journey home.
Another officer experienced a "crushing" chest pain and dizziness followed by what felt like a severe hangover.
The prisons watchdog has warned that NPSs are the most serious threat to the safety and security of jails.
Last month, it emerged that the rampant use of the drugs behind bars is placing local ambulance services under strain as paramedics are increasingly called out to tend to criminals who have used them.
The substances have been linked to rising levels of violence and 19 deaths behind bars.
Mr Gillan said: "This is causing that sort of concern for prisoners and we are extremely concerned about the effects they have on officers as well."
The POA is launching a judicial review in an attempt to speed up a blanket ban on smoking in prisons.
In September, the Government announced that smoking will be prohibited in all Welsh prisons and four in England to reduce health risks in a move seen as the first step towards all jails becoming smoke-free.
The POA is calling for a "clear timetable that will ban smoking totally in every prison establishment".
A Prison Service spokeswoman said:"We have long been committed to a smoke-free prison estate. Implementation will be phased over a long period in order to make these changes safely. Prisoners will have access to e-cigarettes and other support to stop smoking.
"Our careful approach will ensure prison officers and inmates are no longer exposed to second-hand smoke, while not compromising the safety and security of our prisons."
The service added that it takes a zero tolerance approach to drugs in prison. A new law is being introduced to target smugglers attempting to sneak designer drugs into prisons, while new testing technology has been described as a "game changer" in the fight against so-called legal highs.