Skip to main content

Highlighting Code Block CVE-2026-12108

| EUVDEUVD-2026-42841 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-10 Wordfence GHSA-cfxv-7hcj-vfr5
4.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

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

  1. Access
    Obtain WordPress administrator credentials
  2. Delivery
    Access Highlighting Code Block plugin admin settings panel
  3. Exploit
    Inject XSS payload into unsanitized settings field
  4. Execution
    Payload persists in WordPress database
  5. Persist
    Any user visits page rendering plugin output
  6. Impact
    Malicious script executes in victim's browser context

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 two simultaneous conditions: (1) an authenticated session with WordPress administrator-level permissions or higher - the CVSS PR:H metric confirms this; and (2) a non-default WordPress deployment where the unfiltered_html capability is restricted, specifically either a WordPress multi-site (network) installation where site-level administrators do not hold super-admin status, or a single-site installation where unfiltered_html has been explicitly disabled via the DISALLOW_UNFILTERED_HTML constant or a security hardening plugin. On standard single-site WordPress installs with default settings, administrators already possess unfiltered_html and can inject arbitrary scripts through core WordPress interfaces without needing this plugin flaw, making the CVE irrelevant in that default scenario. The combined requirement of compromised administrator credentials AND a non-default capability configuration is the primary limiting factor reducing real-world exploitability well below what the network-accessible CVSS attack vector alone might suggest.

Impact

The vendor-assigned CVSS 4.4 Medium score accurately characterizes the constrained real-world risk. The vector AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N reflects network reachability but imposes two significant barriers: high attack complexity (non-default configuration required) and high privilege (administrator credentials required). The Scope:Changed metric is meaningful - a compromised admin-level account in a restricted environment can cascade XSS impact to other users including site visitors and lower-privileged accounts, enabling session token theft or further privilege escalation within the browser context. However, the dual prerequisite of administrator authentication plus a specific non-default configuration substantially limits opportunistic exploitation. No EPSS score was provided in the available data, and the absence of a CISA KEV listing and confirmed public POC further reduces the likelihood of active widespread targeting. The realistic threat actor is an insider, a compromised privileged account, or a targeted attacker who has already achieved administrator access through other means - at which point the marginal harm from this XSS channel is lower than the initial credential compromise. CVSS indicates network attack vector; this is consistent with the web-based admin panel access model described.

Exploit ScenarioDerived

An attacker who has obtained administrator-level credentials on a WordPress multi-site network navigates to the Highlighting Code Block plugin settings panel and injects a JavaScript payload - such as a cookie-stealing script - into an admin settings field that lacks proper sanitization. The payload is written to the database and subsequently rendered without escaping on any page where the plugin's output appears, causing the malicious script to execute silently in the browsers of all visiting users, including other administrators, enabling session hijacking or further lateral movement within the WordPress environment.

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

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

Alert me

AnalysisAIv1 – Jul 10, 2026

Stored Cross-Site Scripting in the Highlighting Code Block WordPress plugin (versions ≤ 2.2.0) allows authenticated attackers holding administrator-level permissions to inject persistent malicious scripts via the plugin's admin settings panel, with those scripts executing in the browsers of any user who subsequently visits an affected page. Exploitation is constrained to WordPress multi-site network installations or single-site deployments where the unfiltered_html capability has been explicitly disabled - conditions that are non-default and substantially narrow the attacker population. No public exploit code or active exploitation has been identified at time of analysis; Wordfence, the reporting source, has published a fix commit to the plugin's SVN repository, though a specific patched release version is not yet confirmed.

RemediationAI

The primary remediation is to update the Highlighting Code Block plugin to a version beyond 2.2.0 once a patched release is published to the WordPress plugin directory. A fix commit is available in the plugin's SVN repository at https://plugins.trac.wordpress.org/changeset?reponame=&old=3592103%40highlighting-code-block&new=3592103%40highlighting-code-block, but a specific tagged patched release version has not been independently confirmed from available data - verify the current version in the WordPress plugin repository before updating. As a compensating control, administrators should audit which accounts hold administrator-level privileges and reduce that set to the minimum necessary, since the attack requires administrator authentication. On multi-site networks, restrict site-admin capabilities using WordPress's native capability management rather than relying on plugin-level filtering. If the Highlighting Code Block plugin is not actively in use, deactivating and removing it eliminates the attack surface entirely with no functional trade-off. Additionally, deploying a web application firewall with XSS filtering rules (such as Wordfence's own firewall ruleset) can block injection attempts as a defense-in-depth measure, though this should not substitute for patching.

Affected VersionsENISA

Highlighting Code Block 0 ≤2.2.0

Affected Packages

euvd highlighting_code_block 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

The vulnerability is a Stored Cross-Site Scripting flaw (CWE-79: Improper Neutralization of Input During Web Page Generation) in the Highlighting Code Block plugin developed by looswebstudio (CPE: cpe:2.3:a:looswebstudio:highlighting_code_block:*:*:*:*:*:*:*:*). Source code references pinpoint the defective logic across three class files: loos_hcb.php (line 158), loos_hcb_menu.php (line 23), and loos_hcb_scripts.php (line 69), indicating that multiple admin-facing input fields fail both to sanitize values on input and to escape them on output. In standard WordPress single-site deployments, administrators inherently possess the unfiltered_html capability, which already permits raw HTML and script injection through core interfaces - making this plugin-level sanitization gap moot in that context. The flaw becomes exploitable only where that capability is revoked, specifically on multi-site networks (where site-level admins may lack super-admin privileges) or hardened single-site installs using the DISALLOW_UNFILTERED_HTML constant or equivalent security hardening.

Know when Highlighting Code Block 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 4.4 MEDIUM
AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 4.4 MEDIUM

Administrator authentication (PR:H) and non-default unfiltered_html restriction (AC:H) are both mandatory; scope change captures cross-user XSS impact on other browsers.

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

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

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

DescriptionCVE.org

The Highlighting Code Block plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 2.2.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Low
niche WordPress syntax-highlighting plugin with limited install base
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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

Priority Score

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