CVE-2026-126367: @grpc/grpc-js: safe_regex incorrectly applies partial string matching for patterns with alternation
Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-r7hq-q2xm-6c5m
Summary
The @grpc/grpc-js-xds package incorrectly anchors regular expressions containing alternation, causing partial string matching instead of full matching. Security teams should update to the patched versions to ensure RBAC and route selection policies are correctly enforced.
Who is affected
Affected deployments using safe_regex matchers with alternation operators in RBAC, route selection, or xDS credentials are susceptible to authorization bypass. An attacker can craft inputs that partially match an allowed pattern, potentially gaining access to restricted gRPC services or methods that the intended policy was meant to block.
Exploitability
The vulnerability carries a CVSS 3.1 score of 4.8, indicating a moderate severity level that requires specific configuration conditions to be exploited. With an EPSS score of 0.002, the probability of exploit is low, and the issue is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade @grpc/grpc-js-xds to version 1.14.2 or higher if using the 1.14.x branch.
- Upgrade @grpc/grpc-js-xds to version 1.13.2 or higher if using the 1.13.x branch.
How to check your project
- Check package.json or lock files to verify if @grpc/grpc-js-xds is installed in the version ranges 1.14.0-1.14.1 or below 1.13.2.
- Search the project codebase for configurations utilizing 'safe_regex' matchers that include the alternation operator (the pipe symbol '|') within policy definitions for RBAC or route rules.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | @grpc/grpc-js-xds |
>= 1.14.0, < 1.14.2 | 1.14.2 | npm install @grpc/[email protected] |
| npm | @grpc/grpc-js-xds |
>= 0, < 1.13.2 | 1.13.2 | npm install @grpc/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | Low |
| Integrity | Low |
| Availability | None |
FAQ
Does this vulnerability affect standard gRPC calls?
No, the issue is specific to the xDS (Discovery Service) implementation in @grpc/grpc-js-xds, specifically affecting components that utilize custom regex matching for authorization and routing.
Is this a remote code execution vulnerability?
No, this is an authorization bypass vulnerability. It allows unauthorized access to services by circumventing regex-based permission rules, but it does not provide direct arbitrary code execution.
How can I remediate if I cannot upgrade immediately?
Not documented. You should avoid using regex alternation in safe_regex matchers as a temporary mitigation, or strictly review RBAC policies to ensure they do not rely on partial matches.
Original advisory description
References
- WEB https://github.com/grpc/grpc-node/security/advisories/GHSA-r7hq-q2xm-6c5m
- WEB https://github.com/grpc/grpc-node/commit/3fc3b0ebf7a89d64843a73679951142d33b40cb1
- WEB https://github.com/grpc/grpc-node/commit/57a67e96babcb29b6eabc1833221ccf2fa152d43
- PACKAGE https://github.com/grpc/grpc-node
- WEB https://github.com/grpc/grpc-node/releases/tag/@grpc/[email protected]
- WEB https://github.com/grpc/grpc-node/releases/tag/@grpc/[email protected]
Source records: GHSA-r7hq-q2xm-6c5m (OSV.dev) · EPSS by FIRST, 2026-11-21.