GHSA-xf64-2f9p-6pqq: Type graphql Information Exposure Vulnerability

LOW
CWE-209
Published
Advisory Summary

GHSA-xf64-2f9p-6pqq is a LOW information exposure vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Type graphql libraries in the npm ecosystem. The issue involves information exposure in type-graphql. Remediation is available by upgrading affected packages to version 0.17.6.

GHSA-xf64-2f9p-6pqq at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xf64-2f9p-6pqq
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-209: Generation of Error Message Containing Sensitive Information
Affected Product Type graphql
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-xf64-2f9p-6pqq

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

type-graphql fixed: 0.17.6
npm install type-graphql@0.17.6
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 type-graphql

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-xf64-2f9p-6pqq, inspect your project dependencies using npm:

npm ls type-graphql

Analyze the terminal output to locate any version of Type graphql in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.17.6), your application is affected.

Note: The npm ls type-graphql 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-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated data. In Type graphql, 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

Versions of `type-graphql` prior to 0.17.6 are vulnerable to Information Exposure. The package leaks the resolver source code in an error message. It is possible to force this error when no subscription topics are provided in the request. ## Recommendation Upgrade to version 0.17.6 or later.

GHSA-xf64-2f9p-6pqq Affected Type graphql Versions

1 component(s)
Fixed Versions:
0.17.6
Product / Package Ecosystem Affected Versions Fixed Version
type-graphql
npm
< 0.17.6
0.17.6

References

Frequently Asked Questions

What is GHSA-xf64-2f9p-6pqq?
GHSA-xf64-2f9p-6pqq is a security vulnerability in Type graphql involving Information Exposure in type-graphql under CWE-209: Generation of Error Message Containing Sensitive Information.
Which Type graphql versions are affected?
Affected versions include releases prior to 0.17.6 across affected packages: type-graphql.
What version fixes GHSA-xf64-2f9p-6pqq?
Upgrading to 0.17.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is type-graphql affected?
Yes, type-graphql is affected in releases prior to 0.17.6. Upgrade your dependency to 0.17.6 or later.
What CWE is associated with GHSA-xf64-2f9p-6pqq?
GHSA-xf64-2f9p-6pqq is classified under CWE-209: Generation of Error Message Containing Sensitive Information (The product generates an error message that includes sensitive information about its environment, users, or associated data.).
How can I check npm dependencies for GHSA-xf64-2f9p-6pqq?
Run the dependency tree command: 'npm ls type-graphql'. 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-xf64-2f9p-6pqq",
  "modified" : "2020-08-31T18:59:32Z",
  "published" : "2020-09-04T17:24:08Z",
  "aliases" : [ ],
  "summary" : "Information Exposure in type-graphql",
  "details" : "Versions of `type-graphql` prior to 0.17.6 are vulnerable to Information Exposure. The package leaks the resolver source code in an error message. It is possible to force this error when no subscription topics are provided in the request.\n\n\n## Recommendation\n\nUpgrade to version 0.17.6 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "type-graphql"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.17.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/MichalLytek/type-graphql/issues/489"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1444"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-209" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:59:32Z",
    "nvd_published_at" : null
  }
}