API Keys Leaked for 4 Days, $250 Burned: The Culprit Was an Unpatched Next.js RCE

Ubunta · x · 2026-10-14

A developer recounts a 4-day key-leak incident: Claude and OpenAI API keys kept leaking, re-leaking immediately after rotation, costing about $250. Key lessons from the postmortem:

Practical advice: patch frameworks, not just your own code; close the hole before rotating keys, or you're handing attackers fresh credentials; compare what leaked with what didn't — the difference is your biggest clue. The author's takeaway: AI did the work, but asking the right question and pointing agents at the right comparison still came from a human.

Related event: Next.js RCE Vulnerability Behind 4-Day API Key Leak Costing $250(2 posts)→

Original post →

More from coding & agent

coding & agent channel →