CVE-2026-135651 in CodeColorer Plugininfo

Summary

by MITRE • 11/26/2026

The CodeColorer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 0.12.0 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Successful exploitation requires that the attacker has already had one prior comment approved from the same name and email pair, as WordPress's comment_previously_approved check auto-approves subsequent comments from recognized commenters.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

The CodeColorer plugin for WordPress presents a significant security risk due to a stored cross-site scripting vulnerability affecting all versions up to 0.12.0. This flaw stems directly from insufficient input sanitization and the absence of proper output escaping when handling user-supplied data within the comment parameter. In web application architecture, this type of oversight allows malicious actors to inject executable JavaScript code into database-stored content rather than transient session data. Because the payload is persisted on the server side, it does not require complex interaction with the specific victim at the moment of injection; instead, the attack becomes persistent and will trigger against any user who views the compromised page where the script was embedded.

The operational mechanics of this exploitation rely heavily on WordPress's native comment moderation logic rather than a direct bypass of authentication for initial submission. An unauthenticated attacker must first submit a comment that is manually approved by an administrator or moderator using their name and email address. Once this initial comment receives approval, it establishes the commenter as a recognized entity within the system. Consequently, any subsequent comments submitted from that same identity pair are automatically approved without further review due to the WordPress core function check for previously approved commentators. This mechanism effectively lowers the barrier for exploitation by allowing an attacker who has gained trust or access through one initial interaction to inject malicious scripts in follow-up interactions that bypass manual moderation entirely.

From a technical classification perspective, this vulnerability aligns with CWE-79, which defines Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting. The specific nature of the flaw involves stored or persistent XSS, where the injected script is saved in a database and served to other users later. This behavior maps directly to the MITRE ATT&CK technique T1059.007, which covers JavaScript under Command and Control or Execution categories depending on the payload's intent. The attacker leverages this execution capability to perform actions such as session hijacking, credential theft via keyloggers, defacement of the website interface, or redirection of users to phishing sites. Since the script executes in the context of the victim’s browser with their active authentication cookies, the impact extends beyond mere visual alteration to potentially compromising sensitive user data and administrative privileges if an administrator views the page.

Mitigation strategies must address both immediate remediation and long-term defensive coding practices. The most critical step is upgrading the CodeColorer plugin to a version newer than 0.12.0 where these sanitization issues have been resolved by the developers. For environments unable to upgrade immediately, administrators should enforce strict moderation policies that require manual approval for all comments regardless of prior history, thereby neutralizing the auto-approval loophole exploited in this attack vector. Additionally, implementing a Content Security Policy header can help mitigate the impact of successful XSS attacks by restricting the sources from which scripts are allowed to execute. Developers and site owners must also ensure that any custom code or third-party plugins adhere to OWASP guidelines for input validation and output encoding, ensuring that all dynamic content is properly escaped before being rendered in HTML contexts to prevent similar injection flaws across the application stack.

Responsible

Wordfence

Reservation

11/23/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00460

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!