<Vulnerability name="CVE-2026-71430">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-08-06T21:19:32</PublicDate>
    <Bugzilla id="2512248" url="https://bugzilla.redhat.com/show_bug.cgi?id=2512248" xml:lang="en:us">
node-re2: node-re2: Denial of Service due to excessive string length in replacements
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>7.5</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-131</CWE>
    <Details xml:lang="en:us" source="Mitre">
node-re2 provides RE2 regular expression bindings for Node.js. Prior to version 1.25.1, the WrappedRE2::Replace function built its replacement result and passed it to V8 using ToLocalChecked without checking for the empty MaybeLocal that V8 returns when the resulting string or buffer exceeds V8's maximum string length. When a global replace uses an output amplifying replacement template, the result can grow quadratically with the input size, and once the result exceeds V8's maximum string length, the unchecked ToLocalChecked call causes a fatal, uncatchable process abort instead of a catchable exception. This issue is fixed in version 1.25.1.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in node-re2, a library providing RE2 regular expression bindings for Node.js. When performing a global string replacement with a specially crafted template that amplifies the output, the resulting string can exceed the maximum length allowed by the V8 JavaScript engine. This unchecked condition causes the Node.js process to terminate unexpectedly. A remote attacker could exploit this vulnerability to trigger a denial of service.
    </Details>
    <PackageState cpe="cpe:/a:redhat:enterprise_linux_ai:3">
        <ProductName>Red Hat Enterprise Linux AI (RHEL AI) 3</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>re2</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-71430
https://nvd.nist.gov/vuln/detail/CVE-2026-71430
https://github.com/uhop/node-re2/security/advisories/GHSA-8hcv-x26h-mcgp
    </References>
</Vulnerability>