Active disclosure · November 2026

The caret is the prompt.

CVE-2026-9002 lets anyone who opens Notepad obtain a fully interactive shell. The shell is the document. Authentication is the blinking caret, which had already logged in as you. Save As shell.bat is the exploit. “Do you want to save changes?” is the ransom.

10.0
CVSS v4 Score
F5
Attack Complexity
1985
First Affected
*Untitled - Notepad
01 / THE FLAW

Why a blank page becomes a shell

Notepad2Shell is a design-level vulnerability in the text editor. When Notepad launches, it offers a fully interactive input surface and writes every keystroke into a buffer with the privileges of the person sitting there. Notepad does not run the commands. It writes them down. That is the vulnerability, and also the product. Saving the buffer as shell.bat is when the metaphor ends and the double-click begins.

The attack is a walk down the menu bar. No radio, no pairing, no second device. Just File, Edit, Format, and a filename you should not have chosen.

01 / File

File → New

Or just launch Notepad. The caret is the prompt. Most sessions remain Untitled, which is a shell with commitment issues.

02 / Edit

Edit → Time/Date

The buffer accepts anything you type, including commands you were afraid to run in a real shell. F5 inserts the date. The date is not an answer. It is the only command Notepad ever shipped.

03 / Format

Format → Word Wrap

A command that does not fit on one line cannot finish its sentence. This is not how shells work. It feels responsible, which is why the Format menu offers it.

04 / File

File → Save As…

The extension is the executable bit. .txt was a promise. .bat, .cmd, and .ps1 are a cousin waiting to happen. The asterisk clears. The shell does not.

02 / PROOF OF CONCEPT

The exploit, visualized

A capture of the blank document, the Save As, and the first commands after the file stops being a metaphor.

Live exploit capture

victim-pc · notepad.exe

The document

*Untitled - Notepad
File → Save As…

The extension is the exploit

The ransom

Do you want to save changes?

This question is the ransom. There is no logout.

cmd.exe — shell.bat, as SYSTEM
03 / AFFECTED

Who’s affected

Any editor that will hold a command long enough for someone to name the file. Threat intelligence indicates the scarce ingredient is the courage to choose a filename.

ProductVectorImpactSeverity
notepad.exe (1985–present)File → New. The caret blinks with intent.User shell, then SYSTEM if you Save As and run itCRITICAL
Windows 11 NotepadTabs. Each one is a session. None have been introduced.Multiple unsaved shellsCRITICAL
Notepad++The plus is a shell you installed and then left on PATH.Same buffer, more pluginsCRITICAL
WordPadIt died, which is the only patch note we trust.HistoricalHIGH
The pad on the fridgePersistence via magnet. Payload: “buy milk”.Runs when the door opensHIGH
Microsoft PaintNone knownStill just a drawingNOT AFFECTED
CVE: CVE-2026-9002 CVSS v4: 10.0 (Critical) Vector: AV:L (Local)/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H Status: Unsaved

This page is the advisory, and it still has an asterisk in the title bar, which is the most honest status a report can have. The vendor was notified and asked if we had tried F5. F5 inserted the date. The date is the disclosure.

04 / DEFENSE

Protect your documents

No vendor patch is available. Until one is released, these help a little.

01

Do not open Notepad

The most effective control. Opening it “to paste a command you are afraid to run” is the command.

02

Do not press Save

The asterisk is a promise you can break. The document is still a session. It is just a shy one.

03

Keep the extension .txt

Renaming the file is the exploit, the patch, and the file’s entire career. Cowardice is a control.

04

Do not press F5

It inserts the date, and the date is not an answer. It is also the only command Notepad ever shipped.

05

Enable Word Wrap

A command that does not fit on one line cannot finish its sentence. This is not how shells work. It feels responsible, which is why the Format menu offers it.

06

Close without saving

If the dialog asks whether you want to save changes, that question is the ransom. Choose No, then walk away from the idea that this was meeting notes.