Skip to main content

Codecolorer EUVDEUVD-2026-23170

| CVE-2026-4032 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
6.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Post malicious comment via form
  2. Delivery
    Shortcode stored in database
  3. Exploit
    Comment rendered on page view
  4. Execution
    Unsanitized class parameter output
  5. Persist
    JavaScript executes in visitor browser
  6. Impact
    Attacker steals session or performs actions

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 three specific conditions: (1) the CodeColorer plugin must be installed and activated on the WordPress site, (2) comments must be enabled on at least one post, and (3) guest comments (comments from unauthenticated users) must be permitted on that post. If any of these conditions is not met, the vulnerability cannot be exploited. The attack is further limited by the need for a potential victim to visit the page containing the malicious comment after it is posted; posts in drafts, pending moderation, or on low-traffic pages reduce real-world exploitation probability. Additionally, WordPress security plugins with comment filtering or WAF protection may block injection attempts.

Impact

This vulnerability represents a moderate real-world risk that varies by deployment context. The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:C) indicates network accessibility, low complexity, no authentication required, but requires user interaction (UI:R) - the victim must visit a page containing the malicious comment. The scope is changed (S:C), meaning the impact affects resources beyond the vulnerable component, which is typical for XSS in shared blog environments. The impact is limited to confidentiality and integrity (C:L/I:L) with no availability impact, suggesting data theft or session hijacking rather than complete system compromise. Real-world severity depends heavily on two gatekeeping factors: comments must be enabled on the post AND guest comments must be allowed. Many WordPress sites disable guest comments or heavily moderate them, which significantly reduces the attack surface. However, sites with open comment policies and high traffic are attractive targets for injecting SEO-spam or malware distribution payloads. No EPSS probability score is provided in the input, preventing probabilistic exploitation assessment. No KEV (CISA Known Exploited Vulnerabilities) status or public POC availability is documented, suggesting limited widespread exploitation at the time of this advisory. The Wordfence source indicates organized security research rather than wild exploitation, and the referenced WordPress plugin changeset suggests an available patch.

Exploit ScenarioDerived

An attacker crafts a WordPress comment containing the malicious shortcode: [cc class="onload=alert('xss')"]code here[/cc]. They post this comment on a blog post where guest comments are enabled, and the payload is stored in the WordPress database. When a site visitor views that page, the plugin renders the comment, outputs the unsanitized 'class' parameter into an HTML attribute, and the browser interprets the injected JavaScript, executing arbitrary code in the visitor's session context. The attacker can steal session cookies, perform administrative actions on behalf of the victim, or redirect users to malicious sites.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 16, 2026

Stored Cross-Site Scripting (XSS) in CodeColorer plugin for WordPress versions up to 0.10.1 allows unauthenticated attackers to inject malicious JavaScript via the 'class' parameter in the 'cc' comment shortcode, which executes in the browsers of users viewing the affected page. Exploitation requires comments to be enabled and guest comments permitted on the target post. The vulnerability has a CVSS score of 6.1 with low complexity and no authentication required, but user interaction (visiting the affected page) is necessary for the payload to execute.

RemediationAI

Update the CodeColorer plugin to a patched version released after 0.10.1. The WordPress plugin repository changeset 3481552 indicates a fix is available in the plugin's source code repository; administrators should update through the WordPress plugin management interface or directly from https://plugins.trac.wordpress.org/changeset/3481552/codecolorer. If immediate patching is not possible, disable the CodeColorer plugin until a patch is applied. As a temporary mitigation, disable guest comments on all posts or globally through Settings > Discussion, which prevents unauthenticated attackers from injecting payloads, though this impacts legitimate user engagement. Additionally, review existing comments for suspicious 'class' parameter values in 'cc' shortcodes and delete any that contain angle brackets, quotes, or event handlers (e.g., onclick, onerror). Website administrators can audit for exploitation by searching the database for comment content containing [cc class= followed by suspicious characters or JavaScript keywords.

Affected VersionsENISA

CodeColorer 0 ≤0.10.1

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 WordPress plugin (CPE: cpe:2.3:a:kpumuk:codecolorer:*:*:*:*:*:*:*:*) that provides syntax highlighting functionality through shortcodes. The vulnerability exists in the 'cc' comment shortcode parser, which accepts a 'class' parameter intended for CSS styling. The plugin fails to properly sanitize this parameter before storing it in the database and fails to escape it when outputting to HTML, creating a classic Stored XSS vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation). The shortcode is processed when comments are rendered, making stored payloads execute in the context of any page containing an infected comment when viewed by site visitors.

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

NVD PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

Lifecycle Timeline

2
Patch released
Apr 16, 2026 - 08:30 nvd
Patch available
CVE Published
Apr 16, 2026 - 03:36 nvd
MEDIUM 6.1

DescriptionCVE.org

The CodeColorer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'class' parameter in 'cc' comment shortcode in versions up to, and including, 0.10.1 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. Exploitation requires comments to be enabled on the target post and guest comments to be allowed.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.0%
Patch available Yes
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
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