---
id: CVE-2026-71430
title: node-re2 provides RE2 regular expression bindings for Node.js
summary: >-
  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…
severity: medium
cvss: 6.2
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-617
  - CWE-131
vendor: Red Hat
product: re2
affected:
  - re2 <= 1.25.0
patched:
  - re2 1.25.1
published: '2026-08-06'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T20:30:11.423'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71430'
references:
  - url: 'https://github.com/uhop/node-re2/security/advisories/GHSA-8hcv-x26h-mcgp'
    label: security-advisories@github.com
  - url: 'https://github.com/uhop/node-re2/security/advisories/GHSA-8hcv-x26h-mcgp'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-71430.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-71430'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2512248'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-71430'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71430'
  - url: 'https://github.com/advisories/GHSA-8hcv-x26h-mcgp'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - ghsa
  - npm
epss: 0.00157
epssPercentile: 0.04105
aliases:
  - GHSA-8hcv-x26h-mcgp
ecosystem: npm
scores:
  nvd: 6.2
  vendor: 7.5
ingestedAt: '2026-08-06T22:05:23.246Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-71430)

Affected packages:

- `re2 <= 1.25.0`

Patched in:

- `re2 1.25.1`

Source: https://github.com/advisories/GHSA-8hcv-x26h-mcgp

## Vendor advisories

- **Red Hat VEX** · Important · updated 2026-09-08 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-71430.json)
