WordPress Comment2Shell Vulnerability Lets Hackers Take Over Sites Through Comments
WordPress patched CVE-2026-93485, a stored XSS called Comment2Shell that can lead to admin-triggered command execution.
Unauthenticated Stored DOM-Based XSS in WordPress Core Affecting 4.7–7.0
CVE-2026-93485 is an unauthenticated stored, DOM-based cross-site scripting vulnerability (CWE-79) in Automattic's WordPress core, caused by improper neutralization of input during web page generation. An attacker with no account can trigger it by submitting a crafted comment on a default installation: comment moderation is disabled by default, and the requirement that a commenter have a previously approved comment can be bypassed, so the payload is stored and later executes in the browsers of anyone viewing the page. Successful exploitation lets the attacker run arbitrary script in a victim's browser, which can be used to hijack sessions or perform actions with the victim's privileges, including those of an administrator who views the compromised content. Any WordPress site running an affected version (4.7 through 7.0.4, or 7.1 before 7.1.1) with comments enabled is affected, which on default settings means essentially all unpatched sites. No public proof-of-concept is known and the issue is not in CISA KEV, so exploitation has not been confirmed.
What to do: Upgrade to WordPress 7.1.1 or later, or apply the patched maintenance release for your current branch when available. Until patched, hold all comments for manual moderation or disable comments entirely, since default settings allow unmoderated comments and the approved-comment requirement can be bypassed. Also review existing comments and content for injected scripts and re-scan after updating.
| Product | Affected |
|---|---|
| Automattic WordPress (core) | 4.7–4.7.35; 4.8–4.8.30; 4.9–4.9.31; 5.0–5.0.27; 5.1–5.1.24; 5.2–5.2.26; 5.3–5.3.23; 5.4–5.4.21; 5.5–5.5.20; 5.6–5.6.19; 5.7–5.7.17; 5.8–5.8.15; 5.9–5.9.16; 6.0– |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Automattic WordPress wordpress allows DOM-Based XSS.This issue affects WordPress: from n/a through 7.1.
WordPress patched CVE-2026-93485, a stored XSS called Comment2Shell that can lead to admin-triggered command execution.
A crafted comment (Comment2Shell) allowed an attacker to run code on the server via a line break in an HTML attribute. Another flaw, Click2Shell, enabled theme installation and further code execution. WordPress has had…
WordPress 7.1.1 patches an unauthenticated stored XSS (CVE-2026-93485) in wpautop(), exploitable via published comments, with CVSS 3.1 score 7.1.
Today 1.6K readers · 2.5K views · 778 reads · all time 189K views