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.1Details
### 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
References
- https://github.com/grpc/grpc-node/security/advisories/GHSA-88h9-xgvx-hvf2[WEB]
- https://github.com/grpc/grpc-node/commit/6cf64b596da03f1942a6b168998f0670217a99c4[WEB]
- https://github.com/grpc/grpc-node/commit/a6c5b31180cc8cea94d0a5ea215ce31a49e0409f[WEB]
- https://github.com/grpc/grpc-node/commit/f32f3712e44581d8dfc8359bd8d30096662f4c75[WEB]
- https://github.com/grpc/grpc-node[PACKAGE]
- https://github.com/grpc/grpc-node/releases/tag/@grpc/grpc-js-xds/1.13.1[WEB]
- https://github.com/grpc/grpc-node/releases/tag/@grpc/grpc-js-xds/1.14.1[WEB]