CVE-2026-126367
published medium CVSS 3.1 · 4.8@grpc/grpc-js: safe_regex incorrectly applies partial string matching for patterns with alternation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| grpc | — | grpc-node< 1.13.2 · >= 1.14.0, < 1.14.2 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| grpc | grpc-node | < 1.13.2 (affected)>= 1.14.0, < 1.14.2 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-625 CWE-625: Permissive Regular Expression
- CWE-863 CWE-863: Incorrect Authorization
References
5- 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/security/advisories/GHSA-r7hq-q2xm-6c5m
Provider assertions
2GitHub_M · cna
@grpc/grpc-js: safe_regex incorrectly applies partial string matching for patterns with alternation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ae86db483fb6618e6204ff31f620aca9598b63a9b17ee6850424cce845c6b56c
- Ingested
- 17 Nov 2026, 12:34:21 UTC
- Source record
- Official CVE record