Grpc grpc-node
@grpc/grpc-js: In certain configurations, getAuthContext can return unauthorized certificates as though they were authorized
@grpc/grpc-js implements the core functionality of gRPC purely in JavaScript, without a C++ addon. Prior to 1.13.6 and 1.14.5, getAuthContext does not distinguish authorized from unauthorized peer certificates when server credentials set requireClientCertificate to false. When applications use the returned authentication context, they can treat an unauthorized certificate as authorized, causing improper authentication. @grpc/grpc-js-xds can reach this condition when RBAC authentication is enabled in affected configurations. This issue is fixed in version 1.14.5 and 1.13.6.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.13.6
- >= 1.14.0, < 1.14.5
Fixed in 1.13.6, 1.14.5
Mitigation
Upgrade grpc-node to 1.13.6 or 1.14.5 or later.
References
- Vendor advisory github.com/grpc/grpc-node/security/advisories/…
- Patch github.com/grpc/grpc-node/commit/2a84ec8b01b9d…
- Patch github.com/grpc/grpc-node/commit/b4e0079c6d22a…
1 more
- Release notes github.com/grpc/grpc-node/releases/tag/@grpc/g…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.