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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-12 · Modified: 2026-11-17
- Aliases: GHSA-r7hq-q2xm-6c5m
- Record: https://cvemate.com/vulnerability/CVE-2026-126367 · JSON: https://cvemate.com/vulnerability/CVE-2026-126367/json

## Description

```text
@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.
```

## Signals

- CVSS: 4.8 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.193%, percentile 9.411%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- grpc grpc-node: \< 1.13.2 \| ≥ 1.14.0, \< 1.14.2
- @grpc grpc-js-xds (Npm): ≥ 1.14.0, \< 1.14.2 \| \< 1.13.2

## References

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

---

Data as of 2026-12-05T08:43:39.895Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
