CVE-2026-71430
Medium · 6.2CVSS
6.2
EPSS
0.2%
Published
Aug 6, 2026
CISA due date
—
Cloudanix analysis
A flaw in a Node.js regular-expression library can make programs using it crash completely when given certain complex search-and-replace patterns, interrupting whatever service relies on that program.
- Exploitation
- Other
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The WrappedRE2::Replace function passes an unchecked ToLocalChecked result to V8; when a global replace with an amplifying template produces a string exceeding V8's maximum length, the empty MaybeLocal triggers an uncatchable fatal process abort instead of a recoverable exception.
Why it matters to the business
Applications using vulnerable node-re2 versions can be forced into immediate termination by crafted regex replace operations, causing unplanned downtime and loss of service availability for any dependent workloads.
How an attack unfolds
An attacker supplies a regular expression replace operation containing a global flag and an output-amplifying template; the quadratic growth of the result exceeds V8's string limit, the unchecked handle causes a hard abort, and the Node.js process terminates without an opportunity for exception handling or graceful recovery.
How to fix it
Upgrade node-re2 to version 1.25.1 or later, which adds the required MaybeLocal check and returns a catchable exception instead of aborting the process. After upgrade, validate that all dependent packages resolve to the fixed release and re-test regex workloads with large or amplifying inputs.
How to confirm the fix worked
Confirm the installed node-re2 version is 1.25.1 or newer via package manager or require.resolve; execute targeted tests that previously triggered quadratic growth and verify that a JavaScript exception is thrown instead of a process abort.
Typical attack path
- Identify an application endpoint or API that invokes node-re2's replace functionality with user-controlled pattern or replacement strings.
- Craft a global regex replace whose template produces quadratic output growth relative to input size.
- Submit the input to trigger result size exceeding V8's maximum string length.
- Observe the unchecked ToLocalChecked call producing a fatal V8 abort and immediate process termination.
How to detect it
Search Node.js application and system logs for V8 fatal error messages mentioning string length limits or MaybeLocal failures around the time of unexpected process exits; correlate with inbound requests that exercise regex replace operations.
- FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal
- node-re2
- WrappedRE2::Replace
What your security team should do
- Immediately inventory all Node.js projects for node-re2 versions prior to 1.25.1 and schedule upgrades.
- Add automated dependency scanning to block future vulnerable releases of node-re2.
- Review any application code that performs global regex replaces with untrusted templates and add input-size or result-size guards.
- Monitor process crash logs for V8 fatal errors related to string length limits as a temporary detection measure.
The record
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
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-120956 The MongoDB C Driver does not validate the type or format of a namespace field returned… CWE-617
- CVE-2026-121409 FreeRDP before 3.32.2 contains a denial of service vulnerability that allows malicious… CWE-617
- CVE-2026-121406 FreeRDP before 3.32.2 allows a client assertion abort because rdpgfx_on_data_received… CWE-617
- CVE-2026-121396 FreeRDP clients from 3.0.0 before 3.32.2 built with verbose WinPR assertions contain a… CWE-617
- CVE-2026-121395 FreeRDP from 3.17.0 before 3.32.2 contains an assertion failure in the RemoteFX… CWE-617
- CVE-2026-121394 FreeRDP from 3.11.0 before 3.32.2 contains an assertion failure in the RemoteFX RLGR… CWE-617
- CVE-2026-121389 FreeRDP from 3.27.0 before 3.32.2 contains a denial of service vulnerability in… CWE-617
- CVE-2026-121390 FreeRDP 3.0.0 before 3.32.2 built with WITH_AAD=ON contains a reachable assertion because… CWE-617