Read the docs

@grpc/grpc-js: safe_regex applies partial matching to alternation patterns

Priority LOW 21CWE-625Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Security bypass
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-863.

Summary

The SafeRegexValueMatcher and PathSafeRegexValueMatcher in @grpc/grpc-js-xds add start and end anchors without grouping a top-level alternation, so an expression meant to match one of several complete values can match a prefix, substring, or suffix. These matchers handle route selection, xDS credential identity matching, and RBAC rules for URL path, principal name, server name, and header. An ALLOW policy with an alternation can accept a method, certificate identity, or header value outside the intended set, while a DENY policy becomes broader. Affected versions are before 1.13.2 and from 1.14.0 through 1.14.1; the weaknesses are CWE-625 and CWE-863.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

Description from the CNA

@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.

Why it matters now

EPSS 0.00158 5th percentileScored 2026-11-16
Fix Fixed grpc-node (grpc): 1.13.2, 1.14.2@grpc/grpc-js-xds (npm): 1.14.2, 1.13.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
grpcgrpc-nodebefore 1.13.2; 1.14.0 to before 1.14.21.13.2, 1.14.2Patch availableCNA
—@grpc/grpc-js-xds (npm)1.14.0 to before 1.14.21.14.2Patch availableGHSA-r7hq-q2xm-6c5m
—@grpc/grpc-js-xds (npm)before 1.13.21.13.2Patch availableGHSA-r7hq-q2xm-6c5m
  • grpc-node Vendorgrpc Affected before 1.13.2; 1.14.0 to before 1.14.2 Fixed in 1.13.2, 1.14.2 Patch available CNA
  • @grpc/grpc-js-xds (npm) Vendor— Affected 1.14.0 to before 1.14.2 Fixed in 1.14.2 Patch available GHSA-r7hq-q2xm-6c5m
  • @grpc/grpc-js-xds (npm) Vendor— Affected before 1.13.2 Fixed in 1.13.2 Patch available GHSA-r7hq-q2xm-6c5m

Remediation

Upgrade @grpc/grpc-js-xds to 1.13.2 or 1.14.2, and upgrade grpc-node to 1.13.2 or 1.14.2.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

  • Fix · CNA grpc-node (grpc) Fixed in 1.13.2, 1.14.2
  • Fix · GHSA-r7hq-q2xm-6c5m @grpc/grpc-js-xds (npm) Fixed in 1.14.2 Advisory →
  • Fix · GHSA-r7hq-q2xm-6c5m @grpc/grpc-js-xds (npm) Fixed in 1.13.2 Advisory →

Timeline

  1. 2026-11-12 Threatist record created from CVE-2026-126367
  2. 2026-11-12 Alias added: GHSA-r7hq-q2xm-6c5m
  3. 2026-11-12 Fix available: npm/@grpc/[email protected], npm/@grpc/[email protected] · GHSA-r7hq-q2xm-6c5m
  4. 2026-11-12 CVSS score added · GHSA-r7hq-q2xm-6c5m
  5. 2026-11-12 Weakness changed · GHSA-r7hq-q2xm-6c5m
  6. 2026-11-12 6 new references · GHSA-r7hq-q2xm-6c5m

References

  • TI-2023-23979 HTTP/2 request cancellation lets attackers exhaust server resources KEVCVSS 3.1HIGH 7.5
  • TI-2026-91061 Incorrect authorization in gRPC Node RBAC overrides for xDS servers CVSS 4.0MEDIUM 6.9
  • TI-2026-25614 gRPC-Go has an authorization bypass via missing leading slash in :path CVSS 3.1CRITICAL 9.1
  • TI-2020-06285 Prototype pollution in grpc CVSS 3.1CRITICAL 9.8
  • TI-2017-05916 Google gRPC before 2017-03-29 has an out-of-bounds write caused by a heap-based… CVSS 3.0CRITICAL 9.8
  • TI-2017-05476 Google gRPC before 2017-02-22 has an out-of-bounds write caused by a heap-based buffer… CVSS 3.0CRITICAL 9.8
See all 25 →

Sources