Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @graphql-tools/git-loader
  4. ›
  5. CVE-2021-23326

CVE-2021-23326: Improper Neutralization of Special Elements used in a Command ('Command Injection')

January 29, 2021 (updated March 31, 2021)

This affects the package @graphql-tools/git-loader The use of exec and execSync in packages/loaders/git/src/load-git.ts allows arbitrary command injection.

References

  • advisory.checkmarx.net/advisory/CX-2020-4300
  • github.com/advisories/GHSA-vhhw-xjvf-wprr
  • github.com/ardatan/graphql-tools/commit/6a966beee8ca8b2f4adfe93318b96e4a5c501eac
  • github.com/ardatan/graphql-tools/pull/2470
  • github.com/ardatan/graphql-tools/releases/tag/%40graphql-tools%2Fgit-loader%406.2.6
  • nvd.nist.gov/vuln/detail/CVE-2021-23326
  • snyk.io/vuln/SNYK-JS-GRAPHQLTOOLSGITLOADER-1062543

Code Behaviors & Features

Detect and mitigate CVE-2021-23326 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.2.6

Fixed versions

  • 6.2.6

Solution

Upgrade to version 6.2.6 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/@graphql-tools/git-loader/CVE-2021-23326.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:02 +0000.