# CVE-2026-116795: RE2JS: Quadratic-time denial of service in re2js lookbehind matching

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-28T17:14:15.988Z
- Modified: 2026-11-02T21:17:25.320Z
- Also known as: GHSA-gg6h-894w-4m9c
- Weaknesses: CWE-407, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- le0pard re2js: >= 2.2.0, < 2.8.7
- re2js (npm): from 2.2.0 before 2.8.7

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/le0pard/re2js/security/advisories/GHSA-gg6h-894w-4m9c> (exploit, web)
- <https://github.com/le0pard/re2js/pull/59> (web)
- <https://github.com/le0pard/re2js/commit/dfdd947785dfa113bdc97416375c246a39458395> (web)
- <https://github.com/le0pard/re2js/releases/tag/2.8.7> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-116795> (advisory)
- <https://github.com/le0pard/re2js> (package)

## Sources

- CVE List: [CVE-2026-116795](https://www.cve.org/CVERecord?id=CVE-2026-116795), CVE Terms of Use, modified 2026-11-02
- GitHub Advisory Database: [GHSA-gg6h-894w-4m9c](https://github.com/advisories/GHSA-gg6h-894w-4m9c), CC-BY-4.0, modified 2026-10-28
- NVD: [CVE-2026-116795](https://nvd.nist.gov/vuln/detail/CVE-2026-116795), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-116795 · Whole record: https://cve.day/CVE-2026-116795.json · Rebuilt by cve.day 2026-11-25T22:59:47.658Z
