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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | re2 | < 1.26.1 | 1.26.1 | GHSA-j4r3-hg7j-8chg |