AI-generated editorial illustration; not a documentary photograph.
WordPress has patched a core vulnerability that could turn a malicious comment into remote code execution when viewed by a logged-in administrator. The project fixed Comment2Shell, tracked as CVE-2026-93485, in WordPress 7.1.1 on September 17 and advised site owners to update promptly.
From Comment to Code Execution
The flaw arose because WordPress checked comments for unsafe HTML when saving them but reformatted that content before display. A crafted line break inside an allowed tag attribute could cause the later formatting step to place attacker-controlled text where a browser interpreted it as an event handler. The resulting script executed automatically when the page loaded.
The script inherited the WordPress permissions of the viewer. If an administrator opened the affected page while logged in, it could use that session to upload a plugin containing a web shell, providing a path to executing commands on the server.
Exploitation Had Conditions
The malicious comment first had to appear publicly. New authors' comments are held for approval by default, but researcher Rafie Muhammad documented ways a comment could bypass that barrier. Exploitation also depended on theme behavior: block themes were affected, along with some classic themes that used the same comment-formatting step, including Twenty Twenty-One.
Patchstack rated CVE-2026-93485 at 7.1 on the CVSS scale. The report says there is no evidence of exploitation, and the vulnerability is not listed by the U.S. government as actively exploited.
Affected and Fixed Releases
Affected WordPress versions span 4.7 through 7.1. Sites on the 7.1 branch should install 7.1.1, while WordPress 7.0 and 6.9 users should move to 7.0.5 and 6.9.8 respectively. Maintained older branches have corresponding security releases, extending back to version 4.7.36.
Immediate Mitigation
Sites unable to update immediately can reduce exposure by disabling comments, while a web application firewall or security plugin may reject the crafted input. These are not separately published workarounds from WordPress or the researcher; updating core remains the recommended response.
Installing the patch does not reverse earlier unauthorized changes. Administrators who suspect targeting should inspect their installations for unfamiliar plugins or files. WordPress 7.1.1 addresses 11 security issues in total, with Comment2Shell the only one described as reachable by an attacker without an account.
Source: WordPress Comment2Shell Flaw Can Turn Anonymous Comment XSS Into RCE via Admin Session

Leave a Reply