Security mailing lists by PureSourceCode

CVE-2026-116795

HIGH 7.5CVSS 3.1

RE2JS: 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm re2js >= 2.2.0, < 2.8.7 2.8.7

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.