Vulnerabilities in pkg:npm/@grpc/grpc-js

PACKAGE
Advisory Identifier: GHSA-m9gg-hp2v-232j
Advisory Summary

CVE-2026-101916 is a HIGH (CVSS 7.4) security vulnerability vulnerability (CWE-295: Improper Certificate Validation) affecting @grpc/grpc-js libraries in the npm ecosystem. The issue involves in certain configurations, getauthcontext can return unauthorized certificates as though they were authorized. Remediation is available by upgrading affected packages to version 1.13.6, 1.14.5.

6 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@grpc/grpc-js

6 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@grpc/grpc-js. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-m9gg-hp2v-232j CVE-2026-101916 HIGH @grpc/grpc-js: In certain configurations, getAuthContext can return unauthorized certificates as though they were authorized
GHSA-f596-whhp-79r4 CVE-2026-101915 LOW @grpc/grpc-js: The server transmits some error messages thrown by method handlers to the client in status messages
GHSA-5375-pq7m-f5r2 CVE-2026-48068 HIGH @grpc/grpc-js: A malformed request can cause a server crash
GHSA-99f4-grh7-6pcq CVE-2026-48069 HIGH @grpc/grpc-js: An incoming malformed compressed message can cause a client or server crash
GHSA-7v5v-9h63-cj86 CVE-2024-37168 MODERATE @grpc/grpc-js can allocate memory for incoming messages well above configured limits
GHSA-pp75-xfpw-37g9 CVE-2020-7768 HIGH Prototype pollution in grpc and @grpc/grpc-js

CVE-2026-101916 at a Glance

CVE Identifier CVE-2026-101916
GHSA Identifier GHSA-m9gg-hp2v-232j
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-295: Improper Certificate Validation
Affected Product @grpc/grpc-js
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-101916

To remediate this vulnerability, upgrade all affected @grpc/grpc-js dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@grpc/grpc-js fixed: 1.13.6
npm install @grpc/grpc-js@1.13.6
@grpc/grpc-js fixed: 1.14.5
npm install @grpc/grpc-js@1.14.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @grpc/grpc-js

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-101916, inspect your project dependencies using npm:

npm ls @grpc/grpc-js

Analyze the terminal output to locate any version of @grpc/grpc-js in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.13.6), your application is affected.

Note: The npm ls @grpc/grpc-js command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In @grpc/grpc-js, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact When server credentials are created with the `requireClientCertificate` option set to `false`, `getAuthContext` does not distinguish between authorized and unauthorized certificates in its return value. This can create improper authentication vulnerabilities for `@grpc/grpc-js` users who use the result of `getAuthContext` for authentication. In particular, `@grpc/grpc-js-xds` can both set the `requireClientCertificate` option to `false` and use the return value of `getAuthContext` for RBAC authentication in some configurations. ### Patches This vulenrability is fixed in 1.13.6 and 1.14.5. ### Workarounds `@grpc/grpc-js` users using `getAuthContext` this way can avoid this problem by setting `requireClientCertificate` to `true`. `@grpc/grpc-js-xds` users using RBAC can avoid this by setting the `require_client_certificate` field to `true` in the DownstreamTlsContext in the xDS configuration.

CVE-2026-101916 Affected @grpc/grpc-js Versions

2 component(s)
Fixed Versions:
1.13.61.14.5
Product / Package Ecosystem Affected Versions Fixed Version
@grpc/grpc-js
npm
< 1.13.6
1.13.6
@grpc/grpc-js
npm
≥ 1.14.0
< 1.14.5
1.14.5

References

Frequently Asked Questions

What is CVE-2026-101916?
CVE-2026-101916 is a security vulnerability in @grpc/grpc-js involving In certain configurations, getAuthContext can return unauthorized certificates as though they were authorized under CWE-295: Improper Certificate Validation.
Which @grpc/grpc-js versions are affected?
Affected versions include releases prior to 1.13.6, 1.14.5 across affected packages: @grpc/grpc-js.
What version fixes CVE-2026-101916?
Upgrading to 1.13.6, 1.14.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @grpc/grpc-js affected?
Yes, @grpc/grpc-js is affected in releases prior to 1.13.6, 1.14.5. Upgrade your dependency to 1.13.6, 1.14.5 or later.
What is the CVSS score of CVE-2026-101916?
CVE-2026-101916 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-101916?
CVE-2026-101916 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check npm dependencies for CVE-2026-101916?
Run the dependency tree command: 'npm ls @grpc/grpc-js'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m9gg-hp2v-232j",
  "modified" : "2026-09-30T15:35:53Z",
  "published" : "2026-09-30T15:35:53Z",
  "aliases" : [ "CVE-2026-101916" ],
  "summary" : "@grpc/grpc-js: In certain configurations, getAuthContext can return unauthorized certificates as though they were authorized",
  "details" : "### Impact\nWhen server credentials are created with the `requireClientCertificate` option set to `false`, `getAuthContext` does not distinguish between authorized and unauthorized certificates in its return value. This can create improper authentication vulnerabilities for `@grpc/grpc-js` users who use the result of `getAuthContext` for authentication.\n\nIn particular, `@grpc/grpc-js-xds` can both set the `requireClientCertificate` option to `false` and use the return value of `getAuthContext` for RBAC authentication in some configurations.\n\n### Patches\n\nThis vulenrability is fixed in 1.13.6 and 1.14.5.\n\n### Workarounds\n`@grpc/grpc-js` users using `getAuthContext` this way can avoid this problem by setting `requireClientCertificate` to `true`. `@grpc/grpc-js-xds` users using RBAC can avoid this by setting the `require_client_certificate` field to `true` in the DownstreamTlsContext in the xDS configuration.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@grpc/grpc-js"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.13.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@grpc/grpc-js"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.14.0"
      }, {
        "fixed" : "1.14.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/grpc/grpc-node/security/advisories/GHSA-m9gg-hp2v-232j"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-101916"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grpc/grpc-node/commit/2a84ec8b01b9db68ed9d2b117a53a81449edb8ee"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grpc/grpc-node/commit/b4e0079c6d22a2adedfcac748e0bc083f783bc7c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/grpc/grpc-node"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grpc/grpc-node/releases/tag/@grpc/grpc-js%401.14.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-30T15:35:53Z",
    "nvd_published_at" : "2026-09-28T21:17:13Z"
  }
}