Vulnerabilities in pkg:npm/type-graphql
PACKAGEGHSA-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.
pkg:npm/type-graphql
Vulnerability advisories affecting package pkg:npm/type-graphql. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xf64-2f9p-6pqq | - | LOW | Information Exposure in type-graphql |
GHSA-xf64-2f9p-6pqq at a Glance
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.
npm install type-graphql@0.17.6
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
GHSA-xf64-2f9p-6pqq Affected Type graphql Versions
1 component(s)| 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?
Which Type graphql versions are affected?
What version fixes GHSA-xf64-2f9p-6pqq?
Is type-graphql affected?
What CWE is associated with GHSA-xf64-2f9p-6pqq?
How can I check npm dependencies for GHSA-xf64-2f9p-6pqq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}