Technical impact
The vulnerability lies in how @grpc/grpc-js applies start and end anchors to user‑supplied regular expressions that contain top‑level alternation. Because the alternation is not grouped, the matcher may accept a prefix, substring, or suffix of a target value. This behavior allows an attacker to craft values that match an ALLOW policy even though they are not explicitly permitted, or to bypass a DENY policy that would otherwise block them. The flaw therefore undermines the integrity of access controls across route selection, xDS credential identity matching, and RBAC URL/path, principal name, server name, and header rules.
Affected Systems
The affected component is the grpc-node project, specifically the @grpc/grpc-js-xds SafeRegexValueMatcher and PathSafeRegexValueMatcher classes. All releases before 1.13.2, and the 1.14.x line up through 1.14.1, are affected. The mistake occurs during the construction of regular expressions used to enforce routing and policy decisions within gRPC services implemented in JavaScript.
Risk and Exploitability
The CVSS score of 4.8 indicates moderate severity, while the EPSS score of < 1% suggests that it is unlikely to be widely exploited at present. The vulnerability is not listed in CISA’s KEV catalog. Exploitation would involve sending crafted gRPC requests that exploit the over‑matching regex to gain unauthorized access or bypass denial rules. An attacker would need to understand the vulnerable pattern to construct an appropriate request, making the attack feasible but non‑trivial.
Github GHSA