{Opioids are a group of drugs that are prescribed to relieve moderate to severe pain. This is a drug the government regulates due to the risk of physical dependence or misuse (taking a drug in a way other than how a doctor prescribes it). Xanax also has boxed warning about the risk of misuse and addiction. They may also recommend keeping naloxone (Narcan) nasal spray on hand. It can be used in an emergency to help reverse serious side effects caused by taking Xanax and opioids together. Xanax has boxed warning about the risk of serious side effects or death if used with opioids.}