CVE-2026-71498
Medium · 5.1CVSS
5.1
EPSS
0.2%
Published
Aug 6, 2026
CISA due date
—
Cloudanix analysis
A flaw in a regular-expression helper used by some Node.js programs could let an attacker read small amounts of nearby computer memory, potentially revealing private information.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds read in the native RE2 binding when a Buffer ending in a truncated multi-byte UTF-8 sequence is passed to regex operations, allowing the decoder to access memory beyond the allocated buffer and potentially disclose adjacent contents.
Why it matters to the business
Applications using this library risk local memory disclosure that could expose sensitive data such as credentials or internal state, increasing the chance of follow-on compromise in Node.js services.
How an attack unfolds
An attacker supplies a specially crafted Buffer containing an incomplete UTF-8 sequence at the end to any regex method exposed by node-re2; the native layer attempts to decode the final code point, reads past the buffer end, and leaks adjacent memory that the attacker can observe.
How to fix it
Upgrade node-re2 to version 1.26.1 or later; rebuild native bindings after upgrade and verify the new version is loaded at runtime.
How to confirm the fix worked
Inspect package.json and node_modules for node-re2 >= 1.26.1; run regression tests that exercise UTF-8 Buffers with the library to confirm the crash or disclosure behavior is absent.
Typical attack path
- Identify Node.js application that imports node-re2
- Craft Buffer whose final bytes form a truncated multi-byte UTF-8 sequence
- Invoke regex matching or replacement API with the malicious Buffer
- Observe or exfiltrate memory contents leaked by the out-of-bounds read
How to detect it
Search application and system logs for node-re2 crashes or segmentation faults during regex operations; correlate with unusual Buffer inputs or regex calls from untrusted sources.
What your security team should do
- Immediately update all instances of node-re2 to 1.26.1 or newer
- Audit direct and transitive dependencies for other copies of the package
- Add automated dependency scanning to CI pipelines to catch similar native-module issues
- Review logging and monitoring for any prior signs of memory disclosure attempts
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-118237 An out-of-bounds read vulnerability was identified in GitHub Enterprise Server in the Git… CWE-125
- CVE-2026-121208 Out of bounds read in Media in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-125
- CVE-2026-121197 Out of bounds read in ANGLE in Google Chrome on on Mac prior to 157.0.8103.38 allowed a… CWE-125
- CVE-2026-121184 Out of bounds read in Media in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-125
- CVE-2026-121160 Out of bounds read in Skia in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-125
- CVE-2026-121140 Out of bounds read in Internals in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-125
- CVE-2026-121112 Out of bounds read in Permissions in Google Chrome prior to 157.0.8103.38 allowed a… CWE-125
- CVE-2026-121093 Out of bounds read in Animation in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-125