Skip to main content

@grpc/grpc-js-xds CVE-2026-126367

MEDIUM
Permissive Regular Expression (CWE-625)
2026-11-12 GitHub_M GHSA-r7hq-q2xm-6c5m
4.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify ALLOW policy using ungrouped safe_regex alternation
  2. Delivery
    Craft method path or certificate identity that extends an intended value
  3. Exploit
    Send unauthenticated gRPC request to xDS-routed service
  4. Execution
    Matcher accepts prefix/substring/suffix
  5. Impact
    Invoke 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm @grpc/grpc-js-xds fix: 1.13.2, 1.14.2

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

Vendor (GitHub_M) PRIMARY 4.8 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 4.8 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
gRPC xDS plugin, limited to service-mesh/xDS Node deployments using safe_regex
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:grpc:grpc-node:*:*:*:*:*:*:*:*

More in Grpc

View all
CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2017-8359 CRITICAL POC
9.8 Apr 30

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_

CVE-2026-48853 CRITICAL POC
9.2 Jun 15

Unsafe Erlang term deserialization in the elixir-grpc library (versions 0.4.0 through 1.0.0) allows unauthenticated remo

CVE-2026-84304 HIGH POC
8.7 Sep 01

Memory exhaustion in gRPC-Go before version 1.83.1 allows an unauthenticated remote attacker to crash any service built

CVE-2026-53430 HIGH POC
8.7 Jun 15

Denial of service in the elixir-grpc library (versions 0.4.0 through 0.x) allows unauthenticated remote attackers to cra

CVE-2026-48854 HIGH POC
8.7 Jun 15

Unauthenticated denial of service in the elixir-grpc library (versions 0.3.1 up to but not including 1.0.0) allows a sin

CVE-2026-48599 HIGH POC
7.6 Jun 15

Authorization bypass in elixir-grpc (grpc library for Elixir) versions 0.8.0 through 0.x allows authenticated attackers

CVE-2026-101914 MEDIUM POC
6.5 Sep 28

Authorization bypass in the @grpc/grpc-js-xds package (the xDS/RBAC extension for @grpc/grpc-js) lets a request for one

CVE-2024-7246 MEDIUM POC
6.3 Aug 06

It's possible for a gRPC client communicating with a HTTP/2 proxy to poison the HPACK table between the proxy and the ba

CVE-2017-7860 CRITICAL
9.8 Apr 14

Google gRPC before 2017-02-22 has an out-of-bounds write caused by a heap-based buffer overflow related to the parse_uni

CVE-2017-7861 CRITICAL
9.8 Apr 14

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

CVE-2017-9431 CRITICAL
9.8 Jun 05

Google gRPC before 2017-04-05 has an out-of-bounds write caused by a heap-based buffer overflow related to core/lib/iomg

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy