Information Exposure in type-graphql

type-graphql Updated 02 Oct 2025

Summary

04/09/2020
LOW
Yes i
Low
Not published

GHSA-xf64-2f9p-6pqq: Information Exposure in type-graphql. Affects type-graphql versions < 0.17.6. Fixed in 0.17.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

type-graphql is an npm package that provides decorators and utilities for creating GraphQL schema and resolvers using TypeScript. It simplifies the process of building GraphQL APIs by allowing developers to define the schema and resolvers using TypeScript classes and decorators. This package is widely used in Node.js applications that utilize GraphQL for data querying and manipulation. However, versions prior to 0.17.6 of type-graphql are vulnerable to an information exposure vulnerability.

Vulnerability Detail

The vulnerability in type-graphql (versions prior to 0.17.6) allows an attacker to obtain sensitive information by exploiting an error message leak. When no subscription topics are provided in the request, it is possible to force an error that exposes the source code of the resolver. This can potentially reveal implementation details and sensitive information that should not be exposed to unauthenticated users. The vulnerability has a low severity rating and is classified under CWE-209.

How To Fix

Latest published version: 2.0.0-rc.3 as of 23 Oct 2026

npm install type-graphql@2.0.0-rc.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.17.6

This is the first release that contains the fix.

npm install type-graphql@0.17.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

In conclusion, type-graphql versions prior to 0.17.6 are vulnerable to an information exposure issue that can leak sensitive information in error messages. It is recommended to upgrade to the latest version of the package to fix this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for type-graphql →

Share this vulnerability

FAQ

type-graphql is an npm package that simplifies the process of building GraphQL APIs using TypeScript.

The vulnerability allows an attacker to obtain sensitive information by exploiting an error message leak in type-graphql.

To fix this vulnerability, you need to upgrade to version 0.17.6 or later of the type-graphql package.

No specific workaround has been mentioned for this vulnerability.

The vulnerability has a low severity rating.

How To Fix

Latest published version: 2.0.0-rc.3 as of 23 Oct 2026

npm install type-graphql@2.0.0-rc.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.17.6

This is the first release that contains the fix.

npm install type-graphql@0.17.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback