Permissive Regular Expression Affecting @grpc/grpc-js-xds package, versions <1.13.2>=1.14.0 <1.14.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.16% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-GRPCGRPCJSXDS-22565995
  • published16 Nov 2026
  • disclosed13 Nov 2026
  • creditAdrian Korwel

Introduced: 13 Nov 2026

NewCVE-2026-126367  (opens in a new tab)
CWE-625  (opens in a new tab)

How to fix?

Upgrade @grpc/grpc-js-xds to version 1.13.2, 1.14.2 or higher.

Overview

@grpc/grpc-js-xds is a Plugin for @grpc/grpc-js. Adds the xds:// URL scheme and associated features.

Affected versions of this package are vulnerable to Permissive Regular Expression via SafeRegexValueMatcher and PathSafeRegexValueMatcher in src/matcher.ts, which construct RE2 patterns as ^${targetRegex}$ without grouping the supplied expression. Because alternation has the lowest precedence in regular expressions, a pattern such as a|b|c compiles to /^a|b|c$/ - matching "starts with a", "contains b", or "ends with c" - rather than requiring a full match of the entire value. These matchers are used for route selection, xDS credential identity matching, and RBAC URL path, principal name, server name, and header rules, so an ALLOW policy using an alternation can accept a method name, certificate identity, or header value outside the intended set.

CVSS Base Scores

version 4.0
version 3.1