Etymology
Today it means: A circumstance in which you end up with a bad outcome, not primarily as a result of your actions i.e. a stitch up Full definition →
Blend of stitch + situation
Etymology from Wiktionary, CC BY-SA 4.0.