# CVE-2026-133937: highlight highlight.js Language Grammar livescript.js hljs.highlight redos


- **Severity:** Medium 6.9 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`)
- **Exploited in the wild:** Not known
- **Fix available:** No
- **Published:** 20 Nov 2026
- **Updated:** 25 Nov 2026
- **Also known as:** DEBIAN-CVE-2026-133937, GHSA-cgx4-p4cg-j8rq, UBUNTU-CVE-2026-133937

## What is CVE-2026-133937?

CVE-2026-133937 is a medium-severity vulnerability in highlight.js, published on 20 Nov 2026. 

### Official description

A flaw has been found in highlight highlight.js up to 11.12.0. The affected element is the function hljs.highlight of the file src/languages/livescript.js of the component Language Grammar Handler. Executing a manipulation of the argument text can lead to inefficient regular expression complexity. The attack can be launched remotely. The exploit has been published and may be used. The pull request to fix this issue awaits acceptance.

Weakness: CWE-400 (Uncontrolled Resource Consumption), CWE-1333 (Inefficient Regular Expression Complexity)

## Which versions are affected by CVE-2026-133937?

It affects 1 product.


Products: Highlight Highlight.js.

CPE match criteria (CPE 2.3):

- `cpe:2.3:a:highlight:highlight.js:*:*:*:*:*:*:*:*` from 11.0 up to 11.0
- `cpe:2.3:a:highlight:highlight.js:*:*:*:*:*:*:*:*` from 11.1 up to 11.1
- `cpe:2.3:a:highlight:highlight.js:*:*:*:*:*:*:*:*` from 11.2 up to 11.2
- `cpe:2.3:a:highlight:highlight.js:*:*:*:*:*:*:*:*` from 11.3 up to 11.3
- `cpe:2.3:a:highlight:highlight.js:*:*:*:*:*:*:*:*` from 11.4 up to 11.4
- `cpe:2.3:a:highlight:highlight.js:*:*:*:*:*:*:*:*` from 11.5 up to 11.5
- `cpe:2.3:a:highlight:highlight.js:*:*:*:*:*:*:*:*` from 11.6 up to 11.6
- `cpe:2.3:a:highlight:highlight.js:*:*:*:*:*:*:*:*` from 11.7 up to 11.7
- `cpe:2.3:a:highlight:highlight.js:*:*:*:*:*:*:*:*` from 11.8 up to 11.8
- `cpe:2.3:a:highlight:highlight.js:*:*:*:*:*:*:*:*` from 11.9 up to 11.9
- `cpe:2.3:a:highlight:highlight.js:*:*:*:*:*:*:*:*` from 11.10 up to 11.10
- `cpe:2.3:a:highlight:highlight.js:*:*:*:*:*:*:*:*` from 11.11 up to 11.11
- `cpe:2.3:a:highlight:highlight.js:*:*:*:*:*:*:*:*` from 11.12.0 up to 11.12.0

Status by vendor (upstream, then each distribution release and vendor build):

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| Red Hat | 8 | deferred | `grafana`, `grafana`, `grafana-azure-monitor` and 12 more |  |
| Red Hat | 9 | deferred | `grafana`, `grafana`, `grafana-selinux` |  |
| Red Hat | 10 | deferred | `grafana` |  |
| Red Hat | ansible_automation_platform:2 | deferred | `automation-platform-ui` |  |
| Red Hat | hummingbird:1 | affected | `grafana12.4`, `grafana13.1`, `grafana13.2` and 2 more |  |

## How do I fix CVE-2026-133937?

No fix has been published for CVE-2026-133937 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-133937 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-133937 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-133937 and fix it if it is affected.

What it is: CVE-2026-133937 is a medium-severity vulnerability in highlight.js, published on 20 Nov 2026. 
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-133937 exists.

Affected product: highlight.js. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-133937/ (Markdown: https://insights.sbomify.com/CVE-2026-133937/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-133937
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-133937
- OSV: https://osv.dev/vulnerability/CVE-2026-133937

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-133937/
Summaries are generated and may contain mistakes; the official description above is the record.
