CVE-2026-122068 in Highlight Js syntax highlighterinfo

Summary

by MITRE • 11/26/2026

Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting") vulnerability in Drupal Highlight Js syntax highlighter allows Reflected XSS. This issue affects Highlight Js syntax highlighter versions: from 0.0.0 to 1.3.1.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

The identified security flaw resides within the Drupal module for Highlight JS, specifically affecting version ranges from 0.0.0 through 1.3.1. This vulnerability is classified as an improper neutralization of input during web page generation, commonly known as Cross-Site Scripting or XSS. The core technical issue stems from insufficient validation and sanitization mechanisms when processing user-supplied data that is subsequently rendered by the syntax highlighting engine. Because Highlight JS is designed to parse code snippets for visual formatting, it often handles complex string inputs. In this specific implementation, the module fails to adequately escape special characters within these inputs before they are injected into the DOM or processed in a context where malicious scripts can be executed. This lack of proper encoding allows an attacker to inject executable JavaScript payloads directly into the application's response stream.

The operational impact of this reflected cross-site scripting vulnerability is significant, particularly for web applications that rely on user-generated content such as code snippets, technical documentation, or forum posts. An attacker can craft a malicious URL containing a script payload and trick a victim into accessing it through social engineering tactics like phishing emails or compromised links. When the victim's browser processes this request, the vulnerable Highlight JS component renders the input without sanitization, causing the embedded JavaScript to execute within the context of the trusted Drupal site. This execution grants the attacker the ability to perform actions on behalf of the user, including stealing session cookies, capturing authentication tokens, hijacking administrative sessions, or performing unauthorized state-changing requests against the application's API endpoints.

From a classification perspective, this vulnerability aligns with CWE-79, which describes Improper Neutralization of Input During Web Page Generation (Cross-site Scripting). The attack vector is categorized under MITRE ATT&CK technique T1059, specifically sub-technique 007 for JavaScript execution. This placement highlights the direct manipulation of client-side code to achieve unauthorized access or data exfiltration. Unlike stored XSS where payloads are saved in a database and served to multiple users over time, reflected XSS requires active interaction with a crafted link, but it remains highly effective against targeted individuals such as system administrators or developers who have elevated privileges within the Drupal environment.

Mitigation strategies must address both immediate remediation and long-term defensive coding practices. The primary solution is to upgrade the Highlight JS module for Drupal to version 1.3.2 or later, where this input validation flaw has been corrected by implementing robust output encoding and context-aware sanitization before rendering content. For organizations unable to patch immediately due to dependency constraints, a temporary workaround involves configuring web application firewalls to detect and block common XSS payloads in query parameters related to syntax highlighting endpoints. Additionally, developers should ensure that Content Security Policy headers are strictly enforced across the Drupal installation to restrict script execution sources, thereby limiting the impact even if an injection attempt succeeds by preventing inline scripts from running unless explicitly whitelisted.

Responsible

Drupal

Reservation

11/04/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00284

KEV

no

Activities

low

Sources

Want to know what is going to be exploited?

We predict KEV entries!