Wiz가 Google Cloud에 합류: 함께 마법을 만드는 것

CVE-2026-133937: 
Grafana 취약점 분석 및 완화

개요

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

기술적 세부사항

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

영향

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

악용 가능성

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

착취 단계

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

타협의 징후

  • 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).

완화 및 우회 방법

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

커뮤니티 반응

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

추가 리소스

리눅스 배포판 수정 현황

주요 리눅스 배포판과 그 릴리스 전반에 걸친 가용성을 수정하세요.

Debian

영향을 받음

bookworm

highlight.js

영향을 받음

sid

highlight.js

영향을 받음

trixie

highlight.js

영향을 받음

Ubuntu

알 수 없음

bionic (esm-apps)

highlight.js

알 수 없음

devel

highlight.js

알 수 없음

focal (esm-apps)

highlight.js

알 수 없음

jammy

highlight.js

알 수 없음

jammy (esm-apps)

highlight.js

알 수 없음

noble

highlight.js

알 수 없음

noble (esm-apps)

highlight.js

알 수 없음

resolute

highlight.js

알 수 없음

RHEL / CentOS

영향을 받음

RHEL 8

grafana.src

영향을 받음

RHEL 9

grafana.src

영향을 받음

RHEL 10

grafana.src

영향을 받음

소스: 이 보고서는 AI를 사용해 생성되었습니다

관련 Grafana 취약점:

CVE ID

심각도

점수

기술

구성 요소 이름

CISA KEV 악용

수정 사항이 있습니다

출판일

CVE-2026-134815CRITICAL9.2
  • Grafana logoGrafana
  • grafana-prometheus
아니요아니요Nov 22, 2026
CVE-2026-134813HIGH8.7
  • Grafana logoGrafana
  • grafana-mssql
아니요아니요Nov 22, 2026
CVE-2026-133937MEDIUM5.5
  • Grafana logoGrafana
  • grafana-azure-monitor
아니요아니요Nov 20, 2026
CVE-2026-10084MEDIUM5.3
  • Grafana logoGrafana
  • cpe:2.3:a:grafana:grafana
아니요네Nov 24, 2026
CVE-2026-133487LOW2.1
  • Grafana logoGrafana
  • nodejs:22::v8-12.4-devel
아니요네Nov 20, 2026

무료 취약점 평가

클라우드 보안 포세를 벤치마킹하세요

9개 보안 영역에서 클라우드 보안 관행을 평가하여 위험 수준을 벤치마킹하고 방어의 허점을 파악하세요.

요청 평가

추가 Wiz 리소스

맞춤형 데모를 받아보세요

맞춤형 데모 신청하기

"내가 본 최고의 사용자 경험은 클라우드 워크로드에 대한 완전한 가시성을 제공합니다."
데이비드 에슬릭CISO
"Wiz는 클라우드 환경에서 무슨 일이 일어나고 있는지 볼 수 있는 단일 창을 제공합니다."
아담 플레처최고 보안 책임자(CSO)
"우리는 Wiz가 무언가를 중요한 것으로 식별하면 실제로 중요하다는 것을 알고 있습니다."
그렉 포니아토프스키위협 및 취약성 관리 책임자