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.
Severity (CVSS)
| Base score | 5.1 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| Provided by | CNA |
Weaknesses
- CWE-125 — CWE-125: Out-of-bounds Read
Affected products
| Vendor | Product | Versions |
|---|---|---|
| uhop | node-re2 | < 1.26.1 |
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)
Generated from the official CVE List on 07 Aug 2026 07:02 UTC.