p PatchFirst

CVE-2026-116795

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

Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.

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.

CVSS 7.5 · Hoch · EPSS 0,5% · Öffentlicher Exploit · Korrektur verfügbar

Veröffentlicht
Aktualisiert

Technologie-Stack: node

Betroffene Produkte und Versionen

  • re2js

    Softwareversionen
    • >= 2.2.0, < 2.8.7: Betroffen

    Keine Korrektur veröffentlicht

  • re2js npm

    Betroffene Versionsbereiche
    • SEMVER: ≥ 2.2.0, < 2.8.7

    Auf 2.8.7 aktualisieren

Originalquellen

Prüfen Sie Ihren Server →