Description
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.
Published: 2026-07-10
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Highlighting Code Block plugin for WordPress allows an authenticated administrator to inject arbitrary JavaScript through the font_family setting, which is stored and rendered on any page that displays the setting. The injected code runs in the browser of every user who views the affected page, enabling credential theft, defacement, or other malicious actions. The flaw arises from insufficient input sanitization and output escaping in the plugin's admin settings.

Affected Systems

All releases of Highlighting Code Block up to and including version 2.2.0 running on WordPress multisite installations where the unfiltered_html capability has been disabled are affected. Administrators or users with equivalent privileges can modify the font_family option and deliver malicious content.

Risk and Exploitability

The CVSS score of 4.4 indicates a moderate severity. The EPSS score of less than 1% reflects a very low likelihood of exploitation in the wild. The vulnerability is not listed in CISA’s KEV catalog. Because it requires authenticated administrator access to alter plugin configuration, the attack vector is restricted. However, any user who visits an affected page is at risk, so timely patching is recommended.

Generated by OpenCVE AI on July 29, 2026 at 11:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Highlighting Code Block plugin to a version newer than 2.2.0, which includes the fix for the stored XSS vulnerability.
  • If an upgrade is not possible, disable the plugin to stop the vulnerable functionality.
  • If the plugin must remain enabled, enforce stricter input validation or sanitization on the font_family setting to reject malicious scripts.

Generated by OpenCVE AI on July 29, 2026 at 11:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Looswebstudio
Looswebstudio highlighting Code Block
Wordpress
Wordpress wordpress
Vendors & Products Looswebstudio
Looswebstudio highlighting Code Block
Wordpress
Wordpress wordpress

Fri, 10 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 10 Jul 2026 09:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Highlighting Code Block <= 2.2.0 - Authenticated (Administrator+) Stored Cross-Site Scripting via 'font_family' Setting
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Looswebstudio Highlighting Code Block
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-10T18:15:41.887Z

Reserved: 2026-06-12T14:32:13.190Z

Link: CVE-2026-12108

cve-icon Vulnrichment

Updated: 2026-07-10T18:15:37.874Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T11:15:04Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')