{"id":"CVE-2026-67550","published":"2026-07-30T19:59:55Z","modified":"2026-07-31T23:07:18Z","title":"re2: Out-of-bounds heap read in `exec`/`test`/`match` via attacker-influenced `lastIndex` on a non-ASCII subject →…","vendor":"uhop","product":"node-re2","tier":"tail","description":{"text":"re2 provides Node.js bindings for Google's RE2 regular expression engine. Prior to 1.25.2, re2 validates lastIndex against the UTF-8 byte length of a subject but uses it as a UTF-16 code-unit offset in exec, test, match, replace, and split, allowing an attacker-influenced lastIndex on a non-ASCII subject to trigger an out-of-bounds heap read and an uncatchable process crash, with limited heap information disclosure in some cases. This issue is fixed in 1.25.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00161,"percentile":0.02824,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/uhop/node-re2/security/advisories/GHSA-ff84-5f28-78qj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/uhop/node-re2/commit/56293de4fc0914d7bc35f92e98de25b0d9bb417d","tags":["x_refsource_MISC"]},{"url":"https://github.com/uhop/node-re2/releases/tag/1.25.2","tags":["x_refsource_MISC"]}],"priority":{"score":4.6,"factors":[{"name":"EPSS percentile","points":0.56},{"name":"CVSS severity","points":3.99}]},"vendorSlug":"uhop","affectedVersions":[{"vendor":"uhop","product":"node-re2","versions":["< 1.25.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-31T23:06:52.923503Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"re2","vulnerableRanges":["<1.25.2"],"patched":["1.25.2"],"from":["GHSA-ff84-5f28-78qj"],"provenance":"source"}],"summary":{"text":"The re2 Node.js bindings for Google's RE2 regular expression engine contain a flaw in exec, test, match, replace, and split, where lastIndex is validated against the UTF-8 byte length of the subject but used as a UTF-16 code-unit offset. An attacker who can influence lastIndex while the subject is a non-ASCII string can trigger an out-of-bounds heap read that crashes the process and may leak limited heap information, with no authentication or user interaction required, though the attack requires local access to the system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:02Z"},"euvd":{"id":"EUVD-2026-51297","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-uhop-node-re2-cve-2026-67550","children":[{"from":"CVE-2026-67550","to":"CVE-2026-71498","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/addon.cc"],"commits":["https://github.com/uhop/node-re2/commit/56293de4fc0914d7bc35f92e98de25b0d9bb417d","https://github.com/uhop/node-re2/commit/9d72042a6a0da5bc523908b04808ea0e23867cc4"],"basis":"shared function","functions":["prepareArgument"]},{"kind":"similar","provenance":"machine","score":0.41,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-71430","published":"2026-08-06","fixed":"1.25.1","kev":false,"link":{"from":"CVE-2026-71430","to":"CVE-2026-67550","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:re2","fromFixed":"1.25.1","toFixed":"1.25.2","daysApart":-7}]}},{"cve":"CVE-2026-67550","published":"2026-07-30","fixed":"1.25.2","kev":false},{"cve":"CVE-2026-68499","published":"2026-07-30","fixed":"1.25.2","kev":false},{"cve":"CVE-2026-71498","published":"2026-08-06","fixed":"1.26.1","kev":false}],"package":"npm:re2"}}