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

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-06T21:19:32.770Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-8hcv-x26h-mcgp
- Weaknesses: CWE-617
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- uhop node-re2: < 1.25.1
- re2 (npm): before 1.25.1

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.2 Medium `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> (exploit, web)
- <https://github.com/uhop/node-re2> (package)

## Sources

- CVE List: [CVE-2026-71430](https://www.cve.org/CVERecord?id=CVE-2026-71430), CVE Terms of Use, modified 2026-08-07
- GitHub Advisory Database: [GHSA-8hcv-x26h-mcgp](https://github.com/advisories/GHSA-8hcv-x26h-mcgp), CC-BY-4.0, modified 2026-08-06
- NVD: [CVE-2026-71430](https://nvd.nist.gov/vuln/detail/CVE-2026-71430), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-71430 · Whole record: https://cve.day/CVE-2026-71430.json · Rebuilt by cve.day 2026-11-25T22:59:31.807Z
