# CVE-2026-126367: @grpc/grpc-js: safe_regex incorrectly applies partial string matching for patterns with alternation

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-12T22:43:36.631Z
- Modified: 2026-11-17T13:17:33.090Z
- Also known as: GHSA-r7hq-q2xm-6c5m
- Weaknesses: CWE-625, CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- grpc grpc-node: < 1.13.2; >= 1.14.0, < 1.14.2
- @grpc/grpc-js-xds (npm): from 1.14.0 before 1.14.2; before 1.13.2

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/grpc/grpc-node/security/advisories/GHSA-r7hq-q2xm-6c5m> (exploit, web)
- <https://github.com/grpc/grpc-node/commit/3fc3b0ebf7a89d64843a73679951142d33b40cb1> (web)
- <https://github.com/grpc/grpc-node/commit/57a67e96babcb29b6eabc1833221ccf2fa152d43> (web)
- <https://github.com/grpc/grpc-node/releases/tag/@grpc/grpc-js-xds@1.13.2> (web)
- <https://github.com/grpc/grpc-node/releases/tag/@grpc/grpc-js-xds@1.14.2> (web)
- <https://github.com/grpc/grpc-node> (package)

## Sources

- CVE List: [CVE-2026-126367](https://www.cve.org/CVERecord?id=CVE-2026-126367), CVE Terms of Use, modified 2026-11-17
- GitHub Advisory Database: [GHSA-r7hq-q2xm-6c5m](https://github.com/advisories/GHSA-r7hq-q2xm-6c5m), CC-BY-4.0, modified 2026-11-12
- NVD: [CVE-2026-126367](https://nvd.nist.gov/vuln/detail/CVE-2026-126367), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-126367 · Whole record: https://cve.day/CVE-2026-126367.json · Rebuilt by cve.day 2026-11-25T22:59:50.581Z
