Vulnerability · Published Aug 6, 2026 · Assigned by GitHub_M
CVE-2026-71498node-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
Medium 5.1
In plain English
A medium-severity out-of-bounds read in node-re2 from uhop. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-re2 | no fix listed | DEBIAN-CVE-2026-71498 |
| Debian:13 | node-re2 | no fix listed | DEBIAN-CVE-2026-71498 |
| Debian:14 | node-re2 | 1.26.1+~cs1.7.0-1 | DEBIAN-CVE-2026-71498 |
| Ubuntu:22.04:LTS | node-re2 | no fix listed | UBUNTU-CVE-2026-71498 |
| Ubuntu:24.04:LTS | node-re2 | no fix listed | UBUNTU-CVE-2026-71498 |
| Ubuntu:26.04:LTS | node-re2 | no fix listed | UBUNTU-CVE-2026-71498 |
| Ubuntu:26.10 | node-re2 | no fix listed | UBUNTU-CVE-2026-71498 |
| npm | re2 | 1.26.1 | GHSA-j4r3-hg7j-8chg |
Affected products (as reported)
Weakness: CWE-125 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
References
- https://github.com/uhop/node-re2/security/advisories/GHSA-j4r3-hg7j-8chg x_refsource_CONFIRM
- https://github.com/uhop/node-re2/issues/272 x_refsource_MISC
- https://github.com/uhop/node-re2/commit/9d72042a6a0da5bc523908b04808ea0e23867cc4 x_refsource_MISC