Vulnerability · Published Aug 6, 2026 · Assigned by GitHub_M

CVE-2026-71430node-re2: String.prototype.replace(re2, template) aborts the Node process (uncatchable ToLocalChecked on empty MaybeLocal) when the result exceeds V8's max string length

Medium 6.2

In plain English

A medium-severity security flaw in node-re2 from uhop. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.2Medium
Exploit odds (30 days)0.2%top 95.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-re2no fix listedDEBIAN-CVE-2026-71430
Debian:13node-re2no fix listedDEBIAN-CVE-2026-71430
Debian:14node-re21.26.1+~cs1.7.0-1DEBIAN-CVE-2026-71430
Ubuntu:22.04:LTSnode-re2no fix listedUBUNTU-CVE-2026-71430
Ubuntu:24.04:LTSnode-re2no fix listedUBUNTU-CVE-2026-71430
Ubuntu:26.04:LTSnode-re2no fix listedUBUNTU-CVE-2026-71430
Ubuntu:26.10node-re2no fix listedUBUNTU-CVE-2026-71430
npmre21.25.1GHSA-8hcv-x26h-mcgp

Affected products (as reported)

VendorProductVersions
uhop node-re2 < 1.25.1

Weakness: CWE-617 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References