That, my friend, is a prolapse. What I would do is search for any exotic animal vets in your area to fix the problem, as it is typically caused by trying to pass too large or too hard stools. For now, try using a sugar water bath as quoted by a very reliable article:
Prolapse is a condition in which the frogs' intestines are coming out of his cloaca. Sometimes they appear as gell-like blobs, some of these "blobs" contain blood vessels, (or not) which only means more of his intestines are out than when we have a hemmoroid situation. They can also be red jelly-like protrusions. The frog can have this happen to them like we do, straining to poop causes hemmoroids in humans, which is a little piece of the inside of your anal-wall protruding outside the body! Impaction can also be a factor. Parasites can also be an underlying cause of prolapse, so having a fecal examination done by a good herp vet is a good idea if this continues.Move the affected frog to the Hospital tank. Now make him a sugar-water bath, using 1/2 teaspoon sugar to 1/2 cup room temperature spring water. Mix it well. Place the frog in the bath. Leave him undisturbed for a couple of hours. Then look to see whether this has worked.
If you suspect it is protozoans, try Pedialite instead. This is the human child's version of electrolytes, or salts. Make a bath in the same way. Follow the same procedure as above. If this does not cause his anal walls to contract and suck in the intestines, the frog will need to see a vet asap.
Once the prolapse has been stabilized, from now on feed it easy to digest/nutritious foods, such as Canadian night-crawlers, arguably one of the best feeder foods in the hobby. Thank you for reading