CVE-2026-116795

GHSA-gg6h-894w-4m9c · published 28 Oct 2026 · updated 2 Nov 2026

RE2JS: Quadratic-time denial of service in re2js lookbehind matching

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in re2js 2.8.7.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
le0pard>=2.2.0 <2.8.7
npm: re2js>=2.2.0 <2.8.72.8.7

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-116795 severity on Zeptric[![CVE-2026-116795](https://zeptric.io/badge/cve/CVE-2026-116795.svg)](https://zeptric.io/cve/CVE-2026-116795)