p PatchFirst

CVE-2026-116795

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

Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.

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 · Élevée · EPSS 0,5% · Code d’exploitation public · Correctif disponible

Publication
Mise à jour

Pile logicielle: node

Produits et versions concernés

  • re2js

    Versions du logiciel
    • >= 2.2.0, < 2.8.7: Concernée

    Aucun correctif publié

  • re2js npm

    Plages de versions concernées
    • SEMVER: ≥ 2.2.0, < 2.8.7

    Mettez à jour vers 2.8.7

Sources originales

Vérifiez votre serveur →