CVE-2026-116795
published high CVSS 3.1 · 7.5RE2JS: Quadratic-time denial of service in re2js lookbehind matching
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| le0pard | — | re2js>= 2.2.0, < 2.8.7 | Affected | Not stated | GitHub_M |
Description
RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching. From 2.2.0 until 2.8.7, enabling LOOKBEHINDS and using repeated matching through matcher().find(), matchAll(), split(), or matcher().replaceAll() can cause quadratic total work. Machine.match restarts lookbehind scanning from offset zero for each requested start position, while Matcher-based APIs request capture slots that prevent the early exit used for captureless matching. Dense matches therefore repeatedly rescan the input, allowing attacker-influenced text to monopolize a single-threaded worker and deny service. This issue is fixed in version 2.8.7.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| le0pard | re2js | >= 2.2.0, < 2.8.7 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-407 CWE-407: Inefficient Algorithmic Complexity
- CWE-1333 CWE-1333: Inefficient Regular Expression Complexity
References
4Provider assertions
2GitHub_M · cna
RE2JS: Quadratic-time denial of service in re2js lookbehind matching
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fa5773ea6ba6506a59077828364faa42b5e75ea39b9b2a333842e5bb03158074
- Ingested
- 02 Nov 2026, 20:27:58 UTC
- Source record
- Official CVE record