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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-re2 | no fix listed | DEBIAN-CVE-2026-71430 |
| Debian:13 | node-re2 | no fix listed | DEBIAN-CVE-2026-71430 |
| Debian:14 | node-re2 | 1.26.1+~cs1.7.0-1 | DEBIAN-CVE-2026-71430 |
| Ubuntu:22.04:LTS | node-re2 | no fix listed | UBUNTU-CVE-2026-71430 |
| Ubuntu:24.04:LTS | node-re2 | no fix listed | UBUNTU-CVE-2026-71430 |
| Ubuntu:26.04:LTS | node-re2 | no fix listed | UBUNTU-CVE-2026-71430 |
| Ubuntu:26.10 | node-re2 | no fix listed | UBUNTU-CVE-2026-71430 |
| npm | re2 | 1.25.1 | GHSA-8hcv-x26h-mcgp |
Affected products (as reported)
Weakness: CWE-617 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/uhop/node-re2/security/advisories/GHSA-8hcv-x26h-mcgp x_refsource_CONFIRM