Skip to content
OpenAdvisories
Medium · 5.1 CVE-2026-71498 EUVD-2026-54165GHSA-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

Published Aug 6, 2026 · Updated Aug 7, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
uhop node-re2 < 1.26.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-re2 1.26.1+~cs1.7.0-1 —
Debian 13 node-re2 No fix yet —
Debian 12 node-re2 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-re2 No fix yet —
Ubuntu 26.04 LTS node-re2 No fix yet —
Ubuntu 24.04 LTS node-re2 No fix yet —
Ubuntu 22.04 LTS node-re2 No fix yet —
Ubuntu 20.04 LTS node-re2 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm re2 < 1.26.1 1.26.1 GHSA-j4r3-hg7j-8chg

References