VDB
Sign up
MEDIUM6.5

GHSA-88h9-xgvx-hvf2

@grpc/grpc-js: The exact path match matcher incorrectly only applies a prefix match for case-insensitive matches

Quick fix

GHSA-88h9-xgvx-hvf2 — @grpc/grpc-js-xds: upgrade to the fixed version with the command below.

npm install @grpc/grpc-js-xds@1.13.1

Details

### Impact When using RBAC to apply authentication rules, the exact path (method name) matcher applies a prefix match instead of an exact match for case-insensitive matches. As a result, if a service has a method with a name that is a prefix of the name of a different method, and they have different access rules, and case-insensitive matching is used, this bug can cause improper authentication.

### Patches

This vulnerability is fixed in 1.13.1 and 1.14.1.

### Workarounds This problem can be avoided by enabling case-sensitive path matching.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@grpc/grpc-js-xds
Introduced in: 0Fixed in: 1.13.1
Fixnpm install @grpc/grpc-js-xds@1.13.1
npm/@grpc/grpc-js-xds
Introduced in: 1.14.0Fixed in: 1.14.1
Fixnpm install @grpc/grpc-js-xds@1.14.1

References