Skip to main content

CodeColorer EUVDEUVD-2026-136252

| CVE-2026-135651 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-26 Wordfence
5.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit benign comment, get approved
  2. Delivery
    Post second comment with XSS payload
  3. Exploit
    Plugin stores comment with insufficient escaping
  4. Execution
    Victim loads page, script executes in browser
  5. Impact
    Session/credential theft or content manipulation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the attacker has already had at least one prior comment approved under the same name and email pair, because WordPress's comment_previously_approved check then auto-approves their subsequent comments, allowing the malicious payload to be stored without moderation. The target site must be running the CodeColorer plugin at version 0.12.0 or earlier and must accept public comments. Payload execution additionally depends on a victim subsequently viewing the page containing the injected comment. These factors - the mandatory prior-approval gate and reliance on a later page view - are what make this high-complexity (AC:H) despite being unauthenticated and network-reachable.

Impact

This is a moderate, not emergency, priority. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N, base 5.4) describes an unauthenticated, network-reachable stored XSS with low confidentiality and integrity impact and a scope change into the victim's browser context. The high attack complexity (AC:H) is corroborated by the description's precondition: WordPress's comment_previously_approved auto-approval means the attacker must already have had one comment approved under the same name/email pair before a malicious comment is stored without moderation - a meaningful gate that reduces mass, opportunistic exploitation. No EPSS score is provided, the CVE is not on CISA KEV, and no proof-of-concept or working exploit is present in the input (only the Wordfence advisory, source lines, and the fixing PR are referenced), so this is not confirmed as actively exploited. The vuln.today Decision label is 'this_month', consistent with a real but non-urgent fix window. Signals are internally consistent - no conflict between the network vector and the description, since comment-based stored XSS is genuinely remote; the main caveat is that EPSS is absent, so exploitation probability cannot be quantified from the data.

Exploit ScenarioDerived

An attacker first posts a benign comment under a chosen name/email and waits for it to be approved, which causes WordPress to auto-approve their later comments. They then submit a second comment containing a crafted code-block/comment payload that the CodeColorer plugin renders without sufficient sanitization; the script executes in the browser of any user who later views that page. No public exploit code is identified in the provided sources.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 26, 2026

Stored cross-site scripting in the CodeColorer syntax-highlighting plugin for WordPress (all versions through 0.12.0) allows remote attackers to plant arbitrary script in comment content that executes in the browser of anyone who later views the affected page. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N) rates it 5.4: network-reachable and unauthenticated, but high complexity because exploitation only works after the attacker has already had one comment approved under the same name and email pair, which causes WordPress's comment_previously_approved check to auto-approve subsequent comments without moderation. No public exploit code and no confirmed active exploitation were identified at time of analysis; vuln.today's decision label places it in the this_month remediation queue rather than an emergency tier, meaning a moderate priority rather than urgent action.

RemediationAI

Vendor-released patch: 0.12.1. Upgrade CodeColorer to 0.12.1 from the WordPress.org plugin directory or by deploying the 0.12.1 tag from https://github.com/kpumuk/codecolorer, which incorporates pull request 85 and changeset 3819465 (https://plugins.trac.wordpress.org/changeset/3819465/codecolorer/trunk/codecolorer-core.php); the release swaps the comment_text hook from callBeforeHighlightCodeBlock to callBeforeHighlightComment and runs the non-code portion of each comment through wp_kses with the pre_comment_content allowlist. Verify after upgrade that the plugin header and CODECOLORER_VERSION constant both read 0.12.1. Because exploitation depends on a previously approved comment from the same name and email pair, sites that do not accept public comments are not exposed through this path, and until the update is applied the exposure is removed by turning off public comment acceptance on the CodeColorer-enabled site; the vendor's change constitutes the complete fix, so no partial plugin-level workaround is documented. The advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/b5dccb15-5853-4389-9402-8c86e85476a3?source=cve should be checked for any later version guidance.

Affected VersionsENISA

CodeColorer 0 ≤0.12.0

Affected Packages

euvd codecolorer no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CodeColorer is a mature WordPress plugin that wraps the GeSHi syntax highlighter and hooks into content rendering, including the comment_text filter, to transform code blocks. The root cause is CWE-79: in 0.12.0 and earlier, the comment_text filter was wired to callBeforeHighlightCodeBlock at priority -1000 (codecolorer.php lines 114 and 120), which processed code blocks but left the remaining comment HTML unfiltered, so insufficient sanitization on input and missing escaping on output allowed markup injected through the 'comment' parameter to reach the rendered page. The upstream fix in pull request 85 replaces that hook with callBeforeHighlightComment, which passes the rest of the comment through wp_kses with the pre_comment_content allowlist (or wp_kses_post when the comment author has the unfiltered_html capability), preserves code-block placeholders, adds rel="nofollow ugc" to links, and prunes span classes to WordPress note-mention classes; these paths are new in codecolorer-core.php around lines 86-160, with the affected legacy code visible at codecolorer-core.php lines 57, 100, 119 and 209 in the 0.12.0 tag. The trigger for the stored injection is described in the advisory and patch: unescaped comment markup rendered outside code blocks. Scope is marked changed (S:C) in the assessed vector, reflecting that the injected script runs in the context of the WordPress site rather than the plugin component itself.

Know when Codecolorer gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Wordfence) PRIMARY 5.4 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Unauthenticated comment submission gives PR:N; the mandatory prior-approved-comment precondition justifies AC:H; stored XSS executing in another user's browser is S:C with C:L/I:L and no availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.5%
Top 68% exploitable
Prevalence
Low
niche WordPress syntax-highlighter plugin, modest install base
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy