CVE-2026-12108

Highlighting Code Block <= 2.2.0 - Authenticated (Administrator+) Stored Cross-Site Scripting via 'font_family' Setting

Published Jul 10, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 August 1, 2026 at 13:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Jul 10, 2026, 6:15 PM
Reserved
Jun 12, 2026, 2:32 PM
Status
Deferred
Published
Jul 10, 2026, 9:16 AM
Modified
Jul 10, 2026, 7:17 PM