They send all typed into editor input to codepen.dev almost immediately (you would see in 1-2 sec after you typed your secret that it appears in respective Network/Response tab) even before one saved it. I tested this with a unique marker: after typing it into index.html, CodePen ran a build with "save:false", and the marker then appeared verbatim in the HTML served from the generated "*.codepen.dev preview". Thus, if you ever entered some secrets in there by mistake consider them compromized even if you did not publish/save the pen
Apparently CodePen 2.0 sends data to their servers as you type
A user reports that CodePen 2.0 streams editor keystrokes to its servers almost instantly, triggering builds with "save:false" and exposing typed content verbatim in generated *.codepen.dev preview responses. That means anything pasted into the editor — including API keys or credentials — may leave the browser before a developer ever hits save. It's a reminder that modern "live preview" cloud IDEs blur the line between local drafting and remote publishing.
- Typed input in CodePen 2.0 reportedly reaches CodePen servers within seconds, before any explicit save.
- A test marker typed into index.html appeared verbatim in the HTML served from the generated codepen.dev preview, despite a build flagged save:false.
- Anyone who has entered secrets into the editor should treat them as compromised and rotate them, even if the pen was never published.
Yubico YubiKey 5 NFC Security Key — If a browser-based editor can quietly ship your typed secrets upstream, it's a good nudge to stop relying on pasted keys and passwords wherever possible. The YubiKey 5 NFC gives you hardware-backed two-factor and passkey logins that never get typed into a text box, and it works over USB-A or by tapping your phone. A tiny thing to keep on your keyring for peace of mind after a leak scare.
See Yubico YubiKey 5 NFC Security Key on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.