@grpc/grpc-js-xds CVE-2026-126367
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify ALLOW policy using ungrouped safe_regex alternation
-
DeliveryCraft method path or certificate identity that extends an intended value
-
ExploitSend unauthenticated gRPC request to xDS-routed service
-
ExecutionMatcher accepts prefix/substring/suffix
-
ImpactInvoke method or assert identity outside intended set
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Permissive regular expression
|
| Exploitation Conditions | Exploitation requires that the deployment uses @grpc/grpc-js-xds AND configures a safe_regex StringMatcher or PathMatcher whose pattern is a top-level alternation (e.g. 'a|b|c') NOT wrapped in a group, used in one of: xDS route selection, xDS credential identity (SAN/CN) matching, or RBAC rules for url_path permissions/principals, authenticated.principal_name, requested_server_name, or header rules. The dangerous case is specifically an ALLOW policy, which then accepts method names, certificate identities, or header values that extend an intended match as a prefix/substring/suffix. LIMITING FACTORS: configurations without safe_regex, without alternation, or where the alternation is already grouped (e.g. '(?:a|b|c)') are not affected; DENY policies only broaden and remain fail-safe (not an access bypass); and the attacker must supply a value that extends an intended match. No attacker authentication is needed to abuse the weakened control, but the vulnerable matcher pattern must be present in operator configuration. |
| Impact | This is a moderate, condition-dependent authorization flaw rather than a broad emergency. The provided CVSS is 4.8 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N): network-reachable (AV:N) and requiring no attacker authentication (PR:N, consistent with an auth-bypass outcome), but AC:H because exploitation depends on the operator having configured a safe_regex matcher with a top-level alternation - the flaw does not exist in default or non-alternation configurations. No EPSS score and no KEV status were supplied in the input, so widespread or automated exploitation cannot be asserted; absence of these signals is not evidence of safety but limits confidence in active-exploitation claims. The vuln.today decision label is 'this_month' (not act_now/emergency), aligning with a real-but-prioritizable issue. The GitHub Security Advisory includes a demonstrated proof-of-concept with observed bypass output, which raises practical concern above a theoretical finding, but real-world risk is gated on (a) use of @grpc/grpc-js-xds, (b) use of safe_regex matchers, and (c) those matchers using an ungrouped top-level alternation in an ALLOW policy. DENY policies only become broader (fail-safe), so the dangerous case is specifically over-permissive ALLOW rules. Net: a genuine security-control weakness worth patching this cycle, but not a mass-exploitable critical issue. |
| Exploit ScenarioDerived | An operator deploys @grpc/grpc-js-xds with an RBAC ALLOW policy whose safe_regex url_path is written as an alternation such as '/acme.Users/GetUser|/acme.Users/ListUsers'; because the anchors in '^regex$' bind only to the first and last branch, the pattern matches a prefix/substring/suffix instead of the full value. An unauthenticated caller invokes '/acme.Users/GetUserSecrets', which matches the first branch as a prefix and is incorrectly allowed, reaching a method the policy intended to exclude. The vendor advisory includes a working PoC that drives the RBAC engine directly and shows the method-path and mTLS SPIFFE-identity bypasses with observed output. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
The @grpc/grpc-js-xds SafeRegexValueMatcher and PathSafeRegexValueMatcher compile operator-supplied safe_regex patterns as ^regex$ without wrapping the pattern in a group, so a top-level alternation such as 'a|b|c' is anchored only on its first and last branches. In deployments that use such alternation patterns for xDS route selection, xDS credential identity (SAN/CN) matching, or RBAC url_path, principal_name, requested_server_name, or header rules, an ALLOW policy can therefore accept a method, certificate identity, or header value that extends an intended match as a prefix, substring, or suffix - for example a PoC shows '/acme.Users/GetUserSecrets' allowed by a policy listing '/acme.Users/GetUser|/acme.Users/ListUsers'. A public PoC reference exists in the advisory; it is not verified as working exploit code, and there is no confirmation of active exploitation (no CISA KEV), while exploitation still requires the vulnerable alternation matcher to be present in operator configuration, so this is a moderate, condition-dependent authorization flaw rather than a broad emergency.
RemediationAI
Upgrade @grpc/grpc-js-xds to 1.13.2 on the 1.13 branch or 1.14.2 on the 1.14 branch; the vendor fix wraps the supplied pattern as ^(${targetRegex})$ in SafeRegexValueMatcher and PathSafeRegexValueMatcher (commits 3fc3b0ebf7a89d64843a73679951142d33b40cb1 and 57a67e96babcb29b6eabc1833221ccf2fa152d43), with the advisory at https://github.com/grpc/grpc-node/security/advisories/GHSA-r7hq-q2xm-6c5m. As a configuration-level workaround pending upgrade, audit safe_regex patterns in xDS route, credential, and RBAC configs and either rewrite any top-level alternation into an explicitly grouped form such as '(?:a|b|c)' so the anchors apply to the whole expression, or replace alternation-based ALLOW matchers with exact matchers; the trade-off is that these edits must be re-applied to every generated or templated xDS policy and are easy to miss, and DENY rules need no change because they only become broader and remain fail-safe.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-625 (Regular Expression without Anchors, here an anchoring-precedence error) in the TypeScript matcher layer of @grpc/grpc-js-xds. src/matcher.ts builds both SafeRegexValueMatcher and PathSafeRegexValueMatcher as new RE2(^${targetRegex}$, 'u') and apply() simply calls test(value). Because alternation has the lowest precedence, 'a|b|c' compiles to /^a|b|c$/ - matching values that start with 'a', contain 'b', or end with 'c' - rather than a full-value match. src/route.ts (getPredicateForStringMatcher / getPredicateForHeaderMatcher) instantiates these matchers for every safe_regex StringMatcher and HeaderMatcher, and src/rbac.ts reuses them for RBAC url_path permissions and principals, authenticated.principal_name (mTLS SAN/CN), requested_server_name, and header rules. The fix wraps the pattern as ^(${targetRegex})$ in both classes and adds regression tests ('yes|no|maybe' must not match 'yes_', '_no', '_maybe'). Configurations without safe_regex, without alternation, or with an already-grouped alternation such as '(?:a|b|c)' are not affected; DENY policies only become broader and stay fail-safe.
Know when Grpc gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Network-reachable gRPC with no attacker auth (PR:N, auth-bypass outcome); AC:H because it depends on an operator-configured ungrouped safe_regex alternation; limited C/I from unauthorized method/identity access, no availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
@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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Google gRPC before 2017-03-29 has an out-of-bounds write caused by a heap-based use-after-free related to the grpc_call_
Unsafe Erlang term deserialization in the elixir-grpc library (versions 0.4.0 through 1.0.0) allows unauthenticated remo
Memory exhaustion in gRPC-Go before version 1.83.1 allows an unauthenticated remote attacker to crash any service built
Denial of service in the elixir-grpc library (versions 0.4.0 through 0.x) allows unauthenticated remote attackers to cra
Unauthenticated denial of service in the elixir-grpc library (versions 0.3.1 up to but not including 1.0.0) allows a sin
Authorization bypass in elixir-grpc (grpc library for Elixir) versions 0.8.0 through 0.x allows authenticated attackers
Authorization bypass in the @grpc/grpc-js-xds package (the xDS/RBAC extension for @grpc/grpc-js) lets a request for one
It's possible for a gRPC client communicating with a HTTP/2 proxy to poison the HPACK table between the proxy and the ba
Google gRPC before 2017-02-22 has an out-of-bounds write caused by a heap-based buffer overflow related to the parse_uni
Google gRPC before 2017-02-22 has an out-of-bounds write related to the gpr_free function in core/lib/support/alloc.c. R
Google gRPC before 2017-04-05 has an out-of-bounds write caused by a heap-based buffer overflow related to core/lib/iomg
GHSA-r7hq-q2xm-6c5m
NVD
CVE.org
EPSS
Exploit-DB