CVE-2026-93485: Comment2Shell
CVE-2026-93485, also known as Comment2Shell or Comment2XSS, is an unauthenticated stored cross-site scripting vulnerability in the WordPress Core wpautop() formatting function. It affects unpatched releases across branches 4.7 through 7.1. An inconsistency between initial KSES comment sanitization and subsequent HTML formatting allows a crafted comment to pass sanitization but become executable markup when displayed. A newline inside an allowed HTML attribute interacts with faulty tag-boundary handling, causing attacker-controlled text to be interpreted as browser event-handler attributes. JavaScript can execute automatically when a visitor loads the affected page. If that visitor is an authenticated administrator, the script can abuse administrative functionality to install a malicious plugin and obtain server-side code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation executes attacker-controlled JavaScript in the affected site's browser origin with the viewing user's WordPress privileges. This can expose information accessible to that user and enable unauthorized actions or content modification. When a logged-in administrator with plugin-installation privileges views the malicious comment, the script can retrieve an administrative nonce and upload a malicious plugin containing a web shell. This chain enables arbitrary PHP or command execution with the web application's server-side permissions, potentially resulting in data exposure, persistent compromise, or service disruption. Server-side execution is conditional on the privileged victim and plugin-installation prerequisites; it is not a direct consequence of anonymous comment submission alone.
Mitigation
If you can’t patch tonight, do this now.
Until patched, disable public comments on affected sites or restrict submission to trusted authenticated users. Apply web application firewall or security-plugin filtering for malicious comment markup, and review existing comments for suspicious attribute combinations. Manual moderation may reduce exposure but is not a reliable security boundary: prior-approval checks can be bypassed, and rendering malicious comments during review or preview may expose privileged users. Review plugin installations and administrative activity for evidence of compromise.
Remediation
Patch, then assume compromise.
Upgrade WordPress Core to version 7.1.1 or a newer supported release. Branch-specific fixes include 7.0.5, 6.9.8, 6.8.9, and corresponding security releases for older branches down to 4.7.36. For Debian 13 trixie installations using the distribution package, upgrade wordpress to 6.8.10+dfsg1-0+deb13u1 or later. Verify that updates were applied successfully. Patching does not remove an existing compromise: investigate suspicious comments, unrecognized plugins, unexpected server-side files, and unauthorized administrative activity, and remediate any attacker-installed persistence.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
References
Frequently asked questions
- Is CVE-2026-93485 exploited in the wild?
- Yes. As of Oct 27, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2026-93485?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2026-93485, the earliest disclosed Sep 25, 2026.
- Is there a patch for CVE-2026-93485?
- Upgrade WordPress Core to version 7.1.1 or a newer supported release. Branch-specific fixes include 7.0.5, 6.9.8, 6.8.9, and corresponding security releases for older branches down to 4.7.36.
- How severe is CVE-2026-93485?
- CVE-2026-93485 has a CVSS v3.1 score of 7.1 (High) and an EPSS score of 0.76% (56th percentile) as of Oct 27, 2026.
Recent activity
32 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.