CVE-2026-126367 json
@grpc/grpc-js: safe_regex incorrectly applies partial string matching for patterns with alternation
published 15d ago modified 2d ago also GHSA-r7hq-q2xm-6c5m , EUVD-2026-124775
- cvss
- 4.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
@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.
Patch / fix
- npm @grpc/grpc-js-xds 1.13.2, 1.14.2
Is CVE-2026-126367 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
0.16% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-14).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @grpc/grpc-js-xds | >=1.14.0, <1.14.2 <1.13.2 |
1.14.2 1.13.2 |
Affected products
- grpc grpc-node
Classification
References
-
github.com
/grpc/grpc-node/commit/3fc3b0ebf7a89d64843a73679951142d33b40cb1
web
-
github.com
/grpc/grpc-node/commit/57a67e96babcb29b6eabc1833221ccf2fa152d43
web
-
github.com
/grpc/grpc-node/security/advisories/GHSA-r7hq-q2xm-6c5m
web, advisory
-
github.com
/grpc/grpc-node/releases/tag/@grpc/grpc-js-xds@1.13.2
web
-
github.com
/grpc/grpc-node/releases/tag/@grpc/grpc-js-xds@1.14.2
web
-
github.com
/grpc/grpc-node
package
Sources
- CVE List CVE-2026-126367
- GitHub Advisory GHSA-r7hq-q2xm-6c5m
- NVD CVE-2026-126367
- Maintainer advisory GHSA-r7hq-q2xm-6c5m
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of grpc/grpc-node published their own advisory on GitHub. Reviewed sources take precedence over it.