Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. wincred
  4. ›
  5. CVE-2021-23399

CVE-2021-23399: Improper Input Validation

June 29, 2021 (updated July 2, 2021)

This affects all versions of package wincred. If attacker-controlled user input is given to the getCredential function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization.

References

  • github.com/advisories/GHSA-v85c-hgq5-7pfw
  • github.com/rolangom/wincred/blob/3fd39186ee32add9c12046cdccf2765d19565335/index.ts%23L20
  • nvd.nist.gov/vuln/detail/CVE-2021-23399
  • snyk.io/vuln/SNYK-JS-WINCRED-1078538

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 1.0.2

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/wincred/CVE-2021-23399.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:46 +0000.