Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-93485: Comment2Shell

Published Sep 18, 2026 · Updated 28 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days3 mentions · peak 2 in a dayToday
CVSS7.1High · v3.1
EPSS0.76%56th percentile
CISA KEVNoNot listed
In the wildReported2 exploitation records in Mallory
IdentifiersCVE-2026-93485CWE-79 · Improper Neutralization of Input…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
Comment2ShellComment2Shell is a dependency-free Python 3 exploit and local testing kit targeting CVE-2026-93485, described as a WordPress Core wpautop() parsing flaw. Its primary entry point, comment2shell.py, supports passive version scanning, post discovery, benign XSS probing, full exploit submission, command execution through a known shell, interactive shell access, batch processing, proxying, JSON output, and IOC checks. The full chain submits an unauthenticated crafted comment, relies on vulnerable display-time processing to create an autofocus/onfocus stored XSS condition, and abuses an administrator's browser session to upload a temporary malicious plugin and execute commands. The repository also contains a Nuclei detection template, raw HTTP request examples, browser payload validation pages, an on-host Bash IOC scanner, and Docker lab material for a WordPress 7.1.0/MySQL environment. Docker helpers configure the local lab and remove planted comments or randomized plugin directories. Detection artifacts identify suspicious comments, plugin-upload requests, short single-file PHP plugins, command-execution functions, and the vulnerable formatting.php regex. The claimed impact is remote command execution only after an authenticated administrator renders the malicious comment; without that event, the direct impact is stored XSS.DeathShotXD · Disclosed Sep 25, 2026 · python · javascript · web · browser · networkOperationalPOC-WP-CORE-CVE-2026-93485This 36-file repository is an operational, self-contained Docker lab for CVE-2026-93485 (“Comment2Shell”), rather than a framework module. It provisions a vulnerable WordPress 7.1.0 instance on localhost:8080 and a patched 7.1.1 control on localhost:8081, with MySQL and intentionally permissive comment settings. The numbered exploit directory implements the attack in phases: plant an unauthenticated malicious comment, log in as the lab administrator and inspect rendered HTML, demonstrate the root cause against real WordPress source, provide the browser-side XSS-to-RCE JavaScript, replicate its requests with Bash/curl, and test a contributor-post variant. The core issue is a quote-unaware wpautop regex in WordPress 7.1.0. A newline in an allowed blockquote cite attribute is converted to a placeholder containing '>'; the vulnerable regex injects markup in the attribute. A later wptexturize pass changes the cite-closing quote, allowing a raw quote in code text to terminate the attribute and promote onfocus/autofocus/tabindex into live blockquote attributes. The payload executes without a click when autofocus triggers onfocus during frontend rendering. WordPress 7.1.1 changes the regex to account for quoted attributes and is used as the included negative control. The RCE demonstration is substantive: exploit/04_payload_rce.js builds a ZIP in browser memory, obtains the administrator nonce from the plugin-install page, uploads a PHP plugin to update.php, and invokes its exposed command parameter. exploit/05_rce.sh reproduces this flow using lab admin credentials. exploit/webshell/c2s-demo.php executes arbitrary commands supplied in GET parameter c via PHP system(). cli/poc.py additionally includes passive version scanning, payload verification, Docker-lab management, and a local-host-restricted invasive exploit mode. Research scripts include real-source harnesses, fuzzers, candidate generators, patch analysis, and validation documentation. The repository also claims and tests an expanded stored-XSS surface: sanitized content created by a low-privilege WordPress contributor can trigger the same rendering flaw when viewed on the frontend.686f6c61 · Disclosed Sep 26, 2026 · bash · python · web · browser · networkOperational
FAQ

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.
Activity feed

Recent activity

32 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
nuclei templates pull requestsNews · Oct 26, 2026CVE-2026-93485 - WordPress Core < 7.1.1 - Unauthenticated Stored XSS via Comment (Comment2Shell) by DhiyaneshGeek · Pull Request #17558 · projectdiscovery/nuclei-templatesAn unauthenticated stored cross-site scripting vulnerability affecting WordPress Core versions below 7.1.1, involving comments. The reference discusses an update to a CVE-specific YAML file but provides no exploit details or evidence of active exploitation.Read more ↗tenable nessus pluginsNews · Sep 29, 2026Debian dsa-6525 : wordpress - security update | Tenable®A WordPress vulnerability remediated in Debian's DSA-6525-1 security update. The advisory collectively reports that the included flaws may enable cross-site scripting, privilege escalation, or remote code execution, without specifying which consequence applies to this CVE.Read more ↗cyber security newsNews · Sep 25, 2026WordPress Comment2Shell Vulnerability Lets Hackers Take Over Sites Through CommentsA high-severity unauthenticated stored XSS vulnerability in WordPress's wpautop() formatting function. A crafted anonymous comment can execute JavaScript when rendered and viewed by an administrator; the demonstrated exploit chain uses that administrative context to install a malicious plugin containing a webshell and execute server-side commands.Read more ↗csirt italiaNews · Sep 23, 2026WordPress: PoC pubbliche per lo sfruttamento di nuove vulnerabilità - ACNUna vulnerabilità nella visualizzazione dei commenti di WordPress Core che consente a un utente non autenticato di inviare un commento predisposto per eseguire JavaScript in siti con temi a blocchi o alcuni temi classici. Se un amministratore visualizza la pagina, la sua sessione può essere abusata per caricare un plugin malevolo e ottenere esecuzione di PHP arbitrario sul server. CVSS v3.1: 7.1.Read more ↗
+5 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity21Community discussion across Reddit, Mastodon, and other social sources.