@grpc/grpc-js: safe_regex applies partial matching to alternation patterns
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-863.
Summary
The SafeRegexValueMatcher and PathSafeRegexValueMatcher in @grpc/grpc-js-xds add start and end anchors without grouping a top-level alternation, so an expression meant to match one of several complete values can match a prefix, substring, or suffix. These matchers handle route selection, xDS credential identity matching, and RBAC rules for URL path, principal name, server name, and header. An ALLOW policy with an alternation can accept a method, certificate identity, or header value outside the intended set, while a DENY policy becomes broader. Affected versions are before 1.13.2 and from 1.14.0 through 1.14.1; the weaknesses are CWE-625 and CWE-863.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
@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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| grpc | grpc-node | before 1.13.2; 1.14.0 to before 1.14.2 | 1.13.2, 1.14.2 | Patch available | CNA |
| — | @grpc/grpc-js-xds (npm) | 1.14.0 to before 1.14.2 | 1.14.2 | Patch available | GHSA-r7hq-q2xm-6c5m |
| — | @grpc/grpc-js-xds (npm) | before 1.13.2 | 1.13.2 | Patch available | GHSA-r7hq-q2xm-6c5m |
- grpc-node Vendorgrpc Affected before 1.13.2; 1.14.0 to before 1.14.2 Fixed in 1.13.2, 1.14.2 Patch available CNA
- @grpc/grpc-js-xds (npm) Vendor— Affected 1.14.0 to before 1.14.2 Fixed in 1.14.2 Patch available GHSA-r7hq-q2xm-6c5m
- @grpc/grpc-js-xds (npm) Vendor— Affected before 1.13.2 Fixed in 1.13.2 Patch available GHSA-r7hq-q2xm-6c5m
Remediation
Upgrade @grpc/grpc-js-xds to 1.13.2 or 1.14.2, and upgrade grpc-node to 1.13.2 or 1.14.2.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA grpc-node (grpc) Fixed in 1.13.2, 1.14.2
- Fix · GHSA-r7hq-q2xm-6c5m @grpc/grpc-js-xds (npm) Fixed in 1.14.2 Advisory →
- Fix · GHSA-r7hq-q2xm-6c5m @grpc/grpc-js-xds (npm) Fixed in 1.13.2 Advisory →
Timeline
- 2026-11-12 Threatist record created from CVE-2026-126367
- 2026-11-12 Alias added: GHSA-r7hq-q2xm-6c5m
- 2026-11-12 Fix available: npm/@grpc/[email protected], npm/@grpc/[email protected] · GHSA-r7hq-q2xm-6c5m
- 2026-11-12 CVSS score added · GHSA-r7hq-q2xm-6c5m
- 2026-11-12 Weakness changed · GHSA-r7hq-q2xm-6c5m
- 2026-11-12 6 new references · GHSA-r7hq-q2xm-6c5m
References
Other 6
- 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/[email protected]
- https://github.com/grpc/grpc-node/releases/tag/@grpc/[email protected]
- https://github.com/grpc/grpc-node
More grpc vulnerabilities
- TI-2023-23979 HTTP/2 request cancellation lets attackers exhaust server resources KEVCVSS 3.1HIGH 7.5
- TI-2026-91061 Incorrect authorization in gRPC Node RBAC overrides for xDS servers CVSS 4.0MEDIUM 6.9
- TI-2026-25614 gRPC-Go has an authorization bypass via missing leading slash in :path CVSS 3.1CRITICAL 9.1
- TI-2020-06285 Prototype pollution in grpc CVSS 3.1CRITICAL 9.8
- TI-2017-05916 Google gRPC before 2017-03-29 has an out-of-bounds write caused by a heap-based… CVSS 3.0CRITICAL 9.8
- TI-2017-05476 Google gRPC before 2017-02-22 has an out-of-bounds write caused by a heap-based buffer… CVSS 3.0CRITICAL 9.8
Sources
- CVE-2026-126367 · CVE Program
- CVE-2026-126367 · NVD
- FIRST EPSS
- GHSA-r7hq-q2xm-6c5m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences