CVE-2026-126367 @grpc/grpc-js: safe_regex incorrectly applies partial string matching for patterns with alternation
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| grpc @grpc/grpc-js-xds(npm) | < 1.13.2; >= 1.14.0, < 1.14.2 | 1.13.2, 1.14.2 | Fixed |
| grpc-node | = < 1.13.2; = >= 1.14.0, < 1.14.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| grpc @grpc/grpc-js-xds(npm) | >= 1.14.0, < 1.14.2 | 1.14.2 |
| grpc @grpc/grpc-js-xds(npm) | < 1.13.2 | 1.13.2 |
| grpc-node | = < 1.13.2 | No fix listed |
| grpc-node | = >= 1.14.0, < 1.14.2 | No fix listed |
References
- https://github.com/grpc/grpc-node/security/advisories/GHSA-r7hq-q2xm-6c5m exploit vendor-advisory
- https://github.com/grpc/grpc-node/commit/3fc3b0ebf7a89d64843a73679951142d33b40cb1 patch
- https://github.com/grpc/grpc-node/commit/57a67e96babcb29b6eabc1833221ccf2fa152d43 patch
- 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
- github.com
- github.com product