{"schemaVersion":4,"id":"CVE-2026-126367","aliases":["GHSA-r7hq-q2xm-6c5m"],"status":"published","duplicateOf":null,"title":"@grpc/grpc-js: safe_regex incorrectly applies partial string matching for patterns with alternation","description":"@grpc/grpc-js implements the core functionality of gRPC purely in JavaScript, without a C++ addon. Before 1.13.2, and from 1.14.0 through 1.14.1, the @grpc/grpc-js-xds SafeRegexValueMatcher and PathSafeRegexValueMatcher add start and end anchors without grouping a supplied top-level alternation. An expression intended to match one of several complete values can therefore match a prefix, substring, or suffix. The affected matchers are used for route selection, xDS credential identity matching, and RBAC URL path, principal name, server name, and header rules. An ALLOW policy using an alternation can consequently accept a method, certificate identity, or header value outside the intended set, while a DENY policy becomes broader rather than permissive. This issue is fixed in versions 1.13.2 and 1.14.2.","dates":{"published":"2026-11-12T22:43:36.631Z","modified":"2026-11-17T12:23:47.036Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.8,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":5.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00193,"percentile":0.09411,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-13T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00201,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00201,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00201,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00201,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00201,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00201,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00193,"percentile":0.09411}],"last30":[{"date":"2026-11-13T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00201,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00201,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00201,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00201,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00201,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00201,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00193,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00193,"percentile":0.09411}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-625","name":"Permissive Regular Expression","description":"The product uses a regular expression that does not sufficiently restrict the set of allowed values.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/625.html"},{"id":"CWE-863","name":"Incorrect Authorization","description":"The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/863.html"}],"affected":[{"vendor":"grpc","product":"grpc-node","name":"grpc-node","label":"grpc-node","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.13.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.13.2","endInclusive":false}},{"text":"≥ 1.14.0, < 1.14.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"1.14.0","startInclusive":true,"end":"1.14.2","endInclusive":false}}],"versionsText":"< 1.13.2 | ≥ 1.14.0, < 1.14.2","eol":null,"hubHref":"/vendor/grpc/grpc-node"},{"vendor":"@grpc","product":"grpc-js-xds","name":"@grpc/grpc-js-xds","label":"grpc-js-xds","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@grpc/grpc-js-xds","purlType":"npm","versions":[{"text":"≥ 1.14.0, < 1.14.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"1.14.0","startInclusive":true,"end":"1.14.2","endInclusive":false}},{"text":"< 1.13.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.13.2","endInclusive":false}}],"versionsText":"≥ 1.14.0, < 1.14.2 | < 1.13.2","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/grpc/grpc-node/security/advisories/GHSA-r7hq-q2xm-6c5m","label":"github.com/grpc/grpc-node/security/advisories/GHSA-r7hq-q2xm-6c5m","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/grpc/grpc-node/commit/3fc3b0ebf7a89d64843a73679951142d33b40cb1","label":"github.com/grpc/grpc-node/commit/3fc3b0ebf7a89d64843a73679951142d33b40cb1","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/grpc/grpc-node/commit/57a67e96babcb29b6eabc1833221ccf2fa152d43","label":"github.com/grpc/grpc-node/commit/57a67e96babcb29b6eabc1833221ccf2fa152d43","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/grpc/grpc-node/releases/tag/@grpc/grpc-js-xds@1.13.2","label":"github.com/grpc/grpc-node/releases/tag/@grpc/grpc-js-xds@1.13.2","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/grpc/grpc-node/releases/tag/@grpc/grpc-js-xds@1.14.2","label":"github.com/grpc/grpc-node/releases/tag/@grpc/grpc-js-xds@1.14.2","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/grpc/grpc-node","label":"github.com/grpc/grpc-node","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-12T22:43:36.631Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-17T12:23:47.036Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,48],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00193,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-17T12:23:47.036Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1","headline":true},{"type":"cvss","source":"osv_npm","date":"2026-11-17T12:23:47.036Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-11-17T12:23:47.036Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-17T12:23:01.614Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00193,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T08:03:29.184Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T08:03:29.748Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T08:03:29.946Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T08:01:00.622Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T08:03:27.537Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T08:03:26.585Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T08:43:39.895Z","stale":false,"partial":false}}