CVE-2026-135651: CodeColorer <= 0.12.0 - Unauthenticated Stored Cross-Site Scripting via Comment Content
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 commentpreviouslyapproved check auto-approves subsequent comments from recognized commenters.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An unauthenticated attacker can exploit it, but only after they have had at least one prior comment approved using the same name and email address. WordPress then auto-approves subsequent comments from that recognized commenter.
When does the injected script execute?
The script is stored in comment content and executes when a user accesses a page containing the injected comment. The issue can affect confidentiality and integrity in the context of the user viewing that page.
Are all CodeColorer installations affected?
Versions up to and including 0.12.0 are affected. The described exploitation path depends on WordPress automatically approving later comments for a previously approved name and email pair.