Those victims are typically Bassettia pallida wasps, which lay their eggs in the stems and branches of oak trees, forming swollen bumps called galls or crypts. The crypt keeper wasp (Euderus set) then lays her eggs in the gall, where her larvae either camp out next to the host hatchlings or burrow into their bodies.
When a hatchling is ready to chew its way out of the gall, the crypt keeper—through a feat of undiscovered mind control or through simply weakening the host—makes it chew a hole that is too small. That causes the host’s head to get stuck like a cork in a wine bottle. After snacking on the body of the host, the crypt keeper wasp escapes the gall by burrowing out through its host’s head, which is much softer than the tough stem of the plant.
Read on: https://www.sciencemag.org/news/2019/09/crypt-keeper-wasp-brainwashes-far-more-victims-thought?utm_campaign=news_daily_2019-09-25&et_rid=389253831&et_cid=3003232