CodePen 2.0 sends editor input to its servers as you type, exposing unsaved secrets

maxim-fin · hn · 2026-09-07

An HN user found that CodePen 2.0 transmits all editor keystrokes to codepen.dev within 1-2 seconds of typing — even before the pen is saved or published.

The test used a unique marker string typed into index.html: CodePen ran a build with save:false, and the marker appeared verbatim in the HTML served from the generated .codepen.dev preview, visible in the Network/Response tab.

Bottom line: any secrets accidentally pasted into the editor should be considered compromised even if never saved. Users are advised to rotate keys.

Original post →

More from Safety

Safety channel →