Skip to main content
Vulnerability Database/CVE-2026-101916

CVE-2026-101916: gRPC-JS Auth Bypass Vulnerability

CVE-2026-101916 is an authentication bypass flaw in @grpc/grpc-js that allows unauthorized certificates to be treated as authorized. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-101916 Overview

CVE-2026-101916 is an improper certificate validation vulnerability [CWE-295] in @grpc/grpc-js, the pure-JavaScript implementation of gRPC for Node.js. Versions prior to 1.13.6 and 1.14.5 fail to distinguish authorized from unauthorized peer certificates inside the getAuthContext method when server credentials set requireClientCertificate to false. Applications that consume the returned authentication context can treat an unauthorized certificate as authorized, resulting in improper authentication. The @grpc/grpc-js-xds package reaches this condition when Role-Based Access Control (RBAC) authentication is enabled. Fixed releases are 1.13.6 and 1.14.5.

Critical Impact

Unauthorized TLS peer certificates can be accepted as authenticated identities, enabling authentication bypass in gRPC services that rely on getAuthContext or xDS RBAC policies for access control.

Affected Products

  • @grpc/grpc-js versions prior to 1.13.6 (1.13.x branch)
  • @grpc/grpc-js versions prior to 1.14.5 (1.14.x branch)
  • @grpc/grpc-js-xds when RBAC authentication is enabled against an affected @grpc/grpc-js version

Discovery Timeline

  • 2026-09-28 - CVE-2026-101916 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-101916

Vulnerability Analysis

The getAuthContext method on server call and transport objects constructs an AuthContext from the underlying Node.js TLSSocket. The pre-patch implementation checks only whether the socket is a TLSSocket before returning the peer certificate as an SSL-authenticated identity. It does not consult the socket's authorized property, which Node.js sets to false when the presented client certificate cannot be verified against the configured trust store.

When a server is configured with requireClientCertificate: false, TLS handshakes complete even if the client certificate is untrusted or self-signed. Consumers of getAuthContext, including the RBAC filter in @grpc/grpc-js-xds, then read sslPeerCertificate and treat its subject as an authenticated principal. The result is that policy decisions can be based on attacker-controlled certificate data.

Root Cause

The root cause is a missing authorization check on the TLS socket. The code inspected only the socket type, not its verification state. Node.js exposes TLSSocket.authorized specifically to convey whether the peer certificate was validated against the trusted Certificate Authority (CA) chain, and this signal was ignored.

Attack Vector

An attacker with network reachability to a vulnerable gRPC server presents a client certificate during the TLS handshake. Because requireClientCertificate is false, the handshake succeeds even when the certificate fails validation. The attacker crafts the certificate's Subject or Subject Alternative Name to match a principal that downstream authorization logic, such as xDS RBAC policies, trusts. Requests then execute under the impersonated identity.

typescript
// Patch: packages/grpc-js/src/server-interceptors.ts
  getAuthContext(): AuthContext {
-    if (this.stream.session?.socket instanceof TLSSocket) {
-      const peerCertificate = this.stream.session.socket.getPeerCertificate();
-      return {
-        transportSecurityType: 'ssl',
-        sslPeerCertificate: peerCertificate.raw ? peerCertificate : undefined
-      }
-    } else {
+    if (!(this.stream.session?.socket instanceof TLSSocket)) {
+      return {};
+    }
+    if (!this.stream.session.socket.authorized) {
       return {};
     }
+    const peerCertificate = this.stream.session.socket.getPeerCertificate();
+    return {
+      transportSecurityType: 'ssl',
+      sslPeerCertificate: peerCertificate.raw ? peerCertificate : undefined
+    }
  }
// Source: https://github.com/grpc/grpc-node/commit/2a84ec8b01b9db68ed9d2b117a53a81449edb8ee

The companion patch in packages/grpc-js/src/transport.ts adds the same guard on the client transport path:

typescript
-    if (session.socket instanceof TLSSocket) {
+    if (session.socket instanceof TLSSocket && session.socket.authorized) {
      this.authContext = {
        transportSecurityType: 'ssl',
        sslPeerCertificate: session.socket.getPeerCertificate()
// Source: https://github.com/grpc/grpc-node/commit/b4e0079c6d22a2adedfcac748e0bc083f783bc7c

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-101916

Indicators of Compromise

  • gRPC server logs showing successful RBAC-authorized requests originating from clients presenting certificates issued by unknown or untrusted CAs.
  • TLS session records where authorized is false but the corresponding gRPC call proceeds past authorization checks.
  • Unexpected principals in application audit logs that do not correspond to any provisioned identity in the trusted CA chain.

Detection Strategies

  • Enumerate Node.js services and inventory @grpc/grpc-js and @grpc/grpc-js-xds versions via npm ls @grpc/grpc-js and Software Bill of Materials (SBOM) scans.
  • Flag any server initialization that uses ServerCredentials.createSsl with the checkClientCertificate argument set to false while also relying on call.getAuthContext() for identity decisions.
  • Search codebases for getAuthContext and sslPeerCertificate usage and confirm that consumers do not derive trust from certificates without an explicit authorized verification upstream.

Monitoring Recommendations

  • Enable TLS handshake logging on gRPC servers and correlate authorized=false events with subsequent authenticated RPCs.
  • Instrument xDS RBAC decisions to record the certificate fingerprint and issuer used for each allow decision, then alert on issuers outside the approved CA list.
  • Track dependency drift for @grpc/grpc-js across container images and CI pipelines to detect reintroduction of vulnerable versions.

How to Mitigate CVE-2026-101916

Immediate Actions Required

  • Upgrade @grpc/grpc-js to 1.14.5 on the 1.14.x branch or 1.13.6 on the 1.13.x branch.
  • Rebuild and redeploy all container images and serverless bundles that transitively depend on the vulnerable package.
  • Rotate any credentials or session material that may have been issued to sessions accepted under improper authentication.

Patch Information

The fix is delivered in commits 2a84ec8 and b4e0079, released in @grpc/grpc-js v1.14.5 and v1.13.6. Both patches gate AuthContext construction on the TLSSocket.authorized flag. Full details are in GitHub Security Advisory GHSA-m9gg-hp2v-232j.

Workarounds

  • Set requireClientCertificate to true when constructing server TLS credentials, so unauthorized certificates cause the handshake to fail rather than reaching getAuthContext.
  • If mutual TLS is not required, remove reliance on getAuthContext for authorization decisions and use application-level tokens validated independently.
  • Wrap consumers of getAuthContext to re-verify the peer certificate chain against the configured trust store before granting access.
bash
# Upgrade to a fixed release
npm install @grpc/grpc-js@1.14.5
# or, for the 1.13.x branch
npm install @grpc/grpc-js@1.13.6

# Verify installed version
npm ls @grpc/grpc-js

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.