CVE-2026-116795
HIGH 7.5CVSS 3.1RE2JS: Quadratic-time denial of service in re2js lookbehind matching
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.
- Published
- 28 Oct 2026
- Last modified
- 2 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-1333CWE-407
- Also known as
- GHSA-gg6h-894w-4m9c
- Sources
- NVDJSONOSV GHSA-gg6h-894w-4m9cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | re2js | >= 2.2.0, < 2.8.7 | 2.8.7 |
References
- https://github.com/le0pard/re2js/commit/dfdd947785dfa113bdc97416375c246a39458395 · WEB
- https://github.com/le0pard/re2js/pull/59 · WEB
- https://github.com/le0pard/re2js/releases/tag/2.8.7 · WEB
- https://github.com/le0pard/re2js/security/advisories/GHSA-gg6h-894w-4m9c · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-116795 · ADVISORY
- https://github.com/le0pard/re2js · PACKAGE
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 28 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 28 Oct 2026)