An unauthenticated stored cross-site scripting (XSS) issue, dubbed Comment2Shell, exists in the WordPress core. The flaw occurs in the `wpautop()` function, which converts line breaks into paragraphs. An attacker can submit a crafted comment containing a line break within the `cite` attribute of a `blockquote` tag. While this input passes the `wp kses()` filter, a subsequent reformatting step during page display uses an incorrect regular expression that inserts a paragraph tag inside the quote, transforming the text into an active `onfocus` event handler triggered by an `autofocus` script.
This XSS executes automatically upon page load without user interaction. If a logged-in administrator views the affected page, the script can abuse the administrator's session to read a plugin installer nonce and upload a malicious PHP plugin, resulting in remote code execution (RCE) on the server. There is currently no evidence of real-world exploitation.