CVE-2026-133937: 
Grafana analisi e mitigazione delle vulnerabilità

Panoramica

CVE-2026-133937 is a ReDoS (Regular Expression Denial of Service) vulnerability in highlight.js affecting all versions up to and including 11.12.0. The flaw resides in the hljs.highlight() function within src/languages/livescript.js (the Language Grammar Handler component), where a crafted text input triggers inefficient regular expression backtracking. It was discovered by researcher LeoWSY-hashblue and reported on September 1, 2026, with public disclosure and NVD publication on November 20, 2026. The vulnerability carries a CVSS v3.1 base score of 5.3 (Medium) and a CVSS v4.0 base score of 5.5 (Medium) (GitHub Advisory, Red Hat Bugzilla).

Dettagli tecnici

The root cause is an ambiguous regular expression in livescript.js at line 285: /(?![ *])(\.|[^\\\n])*?/[gim]*(?=\W), classified under CWE-400 (Uncontrolled Resource Consumption) and CWE-1333 (Inefficient Regular Expression Complexity). The body alternation \.|[^\\\n] is ambiguous on backslash characters — both alternatives can consume the same input — causing the regex engine to backtrack through every partition on a failed match, resulting in quadratic time complexity relative to input size. Live measurements on Node v24.14.0 confirmed the quadratic scaling: a 10 KB input of "/" + "a".repeat(n) takes ~585 ms, 20 KB takes ~2,336 ms, and 40 KB takes ~10,981 ms (×4 per doubling), with extrapolation suggesting ~2.1 hours for a 1 MB input in a single call. The attack requires no authentication and can be launched remotely by submitting crafted text to any application that passes user-controlled input to hljs.highlight() with the LiveScript language (GitHub Issue #4529, GitHub PR #4575).

Impatto

Successful exploitation causes the Node.js event loop to stall for seconds to hours depending on input size, effectively rendering the affected service unresponsive — a Denial of Service condition. Because hljs.highlight() is synchronous and single-threaded, a single crafted request can block all other processing on the server. There is no confidentiality or integrity impact; the vulnerability is limited to availability of the affected service (GitHub Advisory, Red Hat Bugzilla).

Sfruttabilità

A minimal proof-of-concept has been publicly published in the GitHub issue report, demonstrating the quadratic scaling with a simple Node.js script. The CVE status is listed as "Deferred" and the EPSS score is approximately 0.587–0.701%, placing it around the 49th percentile for exploitation probability. No in-the-wild exploitation has been observed, no threat actor attribution exists, and the vulnerability is not listed in the CISA KEV catalog. The NVD SSVC assessment marks it as automatable with a PoC exploitation status (GitHub Issue #4529, GitHub Advisory).

Fasi di sfruttamento

  1. Identify target: Locate a web application or service that uses highlight.js ≤ 11.12.0 and passes user-controlled text to hljs.highlight() with the livescript language option (e.g., code editors, documentation platforms, or paste services).
  2. Craft malicious payload: Construct a string that triggers the ambiguous regex backtracking in livescript.js. The minimal PoC payload is "/" + "a".repeat(n) where n is a large number (e.g., 40,000 characters produces ~11 seconds of CPU stall).
  3. Submit payload: Send the crafted input to the target application's code highlighting endpoint via HTTP request (e.g., a POST to a syntax highlighting API or a form submission).
  4. Achieve DoS: The server's Node.js event loop stalls while processing the regex match, blocking all other requests and causing service unavailability. Repeating the request before recovery maintains the denial of service condition (GitHub Issue #4529).

Indicatori di compromissione

  • Logs: Unusually long response times or timeouts on endpoints that invoke syntax highlighting; Node.js process logs showing event loop lag warnings (e.g., blocked for Xms).
  • Process: Sustained high CPU usage (near 100%) by the Node.js process handling highlight.js requests, particularly correlated with incoming requests containing large text inputs.
  • Network: Repeated HTTP requests to code highlighting endpoints containing large payloads (tens of KB) with content resembling /<repeated characters> patterns, especially targeting LiveScript language highlighting.
  • Application Metrics: Sudden spikes in request latency or queue depth on services that use highlight.js, with no corresponding increase in legitimate traffic (GitHub Issue #4529).

Mitigazione e soluzioni alternative

No patched release of highlight.js has been published yet; a fix is pending acceptance via pull request #4575, which rewrites the vulnerable LiveScript regex to use mutually exclusive alternatives ((?:[^\\\/\[\n]|\\.| \[(?:[^\\\]\n]|\\.)*\])*?) that eliminate backtracking. Until a patched version is released, downstream users should: (1) cap untrusted input length to 10–20 KB before passing to hljs.highlight(); (2) run highlighting in a worker thread with a timeout to prevent event loop blocking; (3) avoid registering the LiveScript grammar if it is not needed; or (4) implement rate limiting on code highlighting operations. Monitor the highlight.js repository for a new release incorporating PR #4575 and PR #4546 (GitHub PR #4575, GitHub Issue #4529, Red Hat Bugzilla).

Reazioni della comunità

Red Hat has opened a tracking bug (Bugzilla #2579722) and assigned medium severity, with 68 users CC'd indicating broad internal interest across Red Hat product teams. The GitHub issue (#4529) received community engagement with a 👀 reaction and prompted multiple complementary pull requests (#4575, #4546, #4552) from community contributors addressing different affected grammars. The Artemis project (ls1intum/Artemis) has already merged a guard against the LiveScript grammar vulnerability, reflecting rapid downstream adoption of mitigations (Red Hat Bugzilla, GitHub PR #4575).

Risorse aggiuntive

Stato delle patch per la distribuzione Linux

Disponibilità delle patch per le principali distribuzioni Linux e relative versioni.

Debian

Interessato

bookworm

highlight.js

Interessato

sid

highlight.js

Interessato

trixie

highlight.js

Interessato

Ubuntu

Sconosciuto

bionic (esm-apps)

highlight.js

Sconosciuto

devel

highlight.js

Sconosciuto

focal (esm-apps)

highlight.js

Sconosciuto

jammy

highlight.js

Sconosciuto

jammy (esm-apps)

highlight.js

Sconosciuto

noble

highlight.js

Sconosciuto

noble (esm-apps)

highlight.js

Sconosciuto

resolute

highlight.js

Sconosciuto

RHEL / CentOS

Interessato

RHEL 8

grafana.src

Interessato

RHEL 9

grafana.src

Interessato

RHEL 10

grafana.src

Interessato

Fonte: Questo report è stato generato tramite IA

Vulnerabilità correlate di Grafana:

CVE ID

Gravità

Punteggio

Tecnologie

Nome del componente

Exploit CISA KEV

Dispone di patch

Data di pubblicazione

CVE-2026-134815CRITICAL9.2
  • Grafana logoGrafana
  • grafana-postgres
NoNoNov 22, 2026
CVE-2026-134813HIGH8.7
  • Grafana logoGrafana
  • cockpit-ha-cluster
NoNoNov 22, 2026
CVE-2026-133937MEDIUM5.5
  • Grafana logoGrafana
  • grafana-opentsdb
NoNoNov 20, 2026
CVE-2026-10084MEDIUM5.3
  • Grafana logoGrafana
  • cpe:2.3:a:grafana:grafana
NoSìNov 24, 2026
CVE-2026-133487LOW2.1
  • Grafana logoGrafana
  • nodejs24.src
NoSìNov 20, 2026

Valutazione gratuita delle vulnerabilità

Valuta la tua postura di sicurezza del cloud

Valuta le tue pratiche di sicurezza del cloud in 9 domini di sicurezza per stabilire un benchmark del tuo livello di rischio e identificare le lacune nelle tue difese.

Richiedi valutazione

Ulteriori risorse Wiz

Richiedi una demo personalizzata

Pronti a vedere Wiz in azione?

"La migliore esperienza utente che abbia mai visto offre piena visibilità ai carichi di lavoro cloud."
David EstlickCISO (CISO)
"Wiz fornisce un unico pannello di controllo per vedere cosa sta succedendo nei nostri ambienti cloud."
Adam FletcherResponsabile della sicurezza
"Sappiamo che se Wiz identifica qualcosa come critico, in realtà lo è."
Greg PoniatowskiResponsabile della gestione delle minacce e delle vulnerabilità