And if you use aspirin along with ibuprofen or naproxen, the risk to your stomach is even greater. Any of these pain drugs alone can cause ulcers, and using them together only increases the risk, says Glaser. All three of these medications reduce pain through their effects on the prostaglandin pathways..