---
id: CVE-2026-68499
title: re2 provides Node.js bindings for Google's RE2 regular expression engine
summary: >-
  re2 provides Node.js bindings for Google's RE2 regular expression engine.
  Prior to 1.25.2, re2's String.prototype.match implementation with a global RE2
  pattern that can match the empty string fails to advance its native matching
  cursor …
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-835
vendor: re2
product: re2
affected:
  - re2 <= 1.25.1
patched:
  - re2 1.25.2
published: '2026-07-30'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T20:30:11.423'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-68499'
references:
  - url: >-
      https://github.com/uhop/node-re2/commit/56293de4fc0914d7bc35f92e98de25b0d9bb417d
    label: security-advisories@github.com
  - url: 'https://github.com/uhop/node-re2/releases/tag/1.25.2'
    label: security-advisories@github.com
  - url: 'https://github.com/uhop/node-re2/security/advisories/GHSA-6hxr-mr5r-9836'
    label: security-advisories@github.com
  - url: 'https://github.com/uhop/node-re2/security/advisories/GHSA-6hxr-mr5r-9836'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-68499'
  - url: 'https://github.com/advisories/GHSA-6hxr-mr5r-9836'
tags:
  - nvd
  - ghsa
  - npm
epss: 0.00184
epssPercentile: 0.07016
aliases:
  - GHSA-6hxr-mr5r-9836
ecosystem: npm
ingestedAt: '2026-07-31T16:59:59.774Z'
---

## Overview

re2 provides Node.js bindings for Google's RE2 regular expression engine. Prior to 1.25.2, re2's String.prototype.match implementation with a global RE2 pattern that can match the empty string fails to advance its native matching cursor in lib/match.cc, causing an infinite loop and unbounded native memory growth that blocks the event loop and can exhaust host memory. This issue is fixed in 1.25.2.

## Remediation

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

## Package advisory (CVE-2026-68499)

Affected packages:

- `re2 <= 1.25.1`

Patched in:

- `re2 1.25.2`

Source: https://github.com/advisories/GHSA-6hxr-mr5r-9836
