Description
node-re2 provides RE2 regular expression bindings for Node.js. Prior to version 1.26.1, passing a Buffer whose final bytes form a truncated (incomplete) multi-byte UTF-8 sequence could cause the native binding to read past the end of the allocated buffer while attempting to decode the final, incomplete code point. This could result in an out-of-bounds read and potential disclosure of adjacent memory contents. This issue is fixed in version 1.26.1.
Published: 2026-08-06
Score: 5.1 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

node-re2 is a Node.js binding for Google RE2. The vulnerability is an out-of-bounds heap read triggered when a Buffer that ends with an incomplete multi-byte UTF-8 character is passed to the replace or split functions. This causes the native code to read past the end of the Buffer, potentially disclosing adjacent heap memory to JavaScript and allowing an attacker to obtain sensitive data. The flaw is a classic CWE‑125 type buffer over-read.

Affected Systems

The affected product is node-re2 by uhop. Versions earlier than 1.26.1 are vulnerable. Versions 1.26.1 and later contain the fix and are not affected.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate risk. Disclosures stemming from the out‑of‑bounds read are possible, but the exploitability depends on the attacker’s ability to supply malicious Buffers to the vulnerable functions. The EPSS score is unavailable, and the vulnerability is not listed in CISA’s KEV catalog. Based on the description, the attack vector is local and requires control over the data processed by the application. While it lacks remote code execution, the information disclosure could assist in further attacks if sensitive data is exposed.

Generated by OpenCVE AI on August 7, 2026 at 00:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade node-re2 to version 1.26.1 or later.
  • Validate or sanitize input Buffers to ensure they contain valid UTF‑8 before passing them to replace or split, removing or correcting incomplete multi‑byte sequences.
  • Monitor application behavior for anomalous memory accesses or unexpected data exposure, and apply generic Node.js memory protection practices.

Generated by OpenCVE AI on August 7, 2026 at 00:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-j4r3-hg7j-8chg node-re2: Out-of-bounds heap read in `replace`/`split` via a `Buffer` ending in a truncated multi-byte UTF-8 character → adjacent heap memory disclosed to JavaScript
History

Fri, 07 Aug 2026 01:15:00 +0000

Type Values Removed Values Added
First Time appeared Uhop
Uhop node-re2
Vendors & Products Uhop
Uhop node-re2

Thu, 06 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
Description node-re2 provides RE2 regular expression bindings for Node.js. Prior to version 1.26.1, passing a Buffer whose final bytes form a truncated (incomplete) multi-byte UTF-8 sequence could cause the native binding to read past the end of the allocated buffer while attempting to decode the final, incomplete code point. This could result in an out-of-bounds read and potential disclosure of adjacent memory contents. This issue is fixed in version 1.26.1.
Title node-re2: Out-of-bounds heap read in `replace`/`split` via a `Buffer` ending in a truncated multi-byte UTF-8 character → adjacent heap memory disclosed to JavaScript
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 5.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-06T21:26:00.771Z

Reserved: 2026-08-06T19:56:23.726Z

Link: CVE-2026-71498

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T01:00:05Z

Weaknesses