Comment2Shell: WordPress Zero-Click Stored XSS to RCE
Score: 8/10

Comment2Shell: WordPress Zero-Click Stored XSS to RCE

An unauthenticated visitor can exploit a flaw in the wpautop() function of WordPress core to plant a stored XSS payload that escalates to RCE when viewed by an administrator.

Executive Summary

WordPress versions 4.7 through 7.1 are vulnerable to a zero-click, unauthenticated stored XSS flaw (CVE-2026-93485) dubbed 'Comment2Shell'. The vulnerability resides in the formatting chain of the `comment_text` filter, specifically an improper regex in the `wpautop()` function that fails to handle newlines within allowed HTML attributes like `blockquote[cite]`. This allows an attacker to inject malicious JavaScript handlers that execute automatically when the comment is rendered on sites using block themes or specific classic theme configurations.

The business impact is severe: if a site administrator views a page containing the malicious comment, the XSS payload can leverage the admin's session to upload a malicious plugin, achieving full Remote Code Execution (RCE) and server takeover. While WordPress 7.1.1 has released patches backported to version 4.7, the default configuration for comment moderation does not effectively mitigate this risk because moderation settings can be bypassed using existing approved identities or by targeting the unapproved comment preview functionality.

Key Details

Threat Name

Comment2Shell (CVE-2026-93485)

Affects

WordPress Core versions 4.7 through 7.1, WordPress core 4.7 through 7.1

Adversary

—

Malware/Tools

Comment2Shell, Click2Shell, wp2shell

Report Score

8out of 10
Quality Score
Good
IOC Quality4
TTP Details9
Detection Guidance6
Enterprise Relevance8
Clarity & Structure9
Technical Depth9

Sources