Description
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.
Remediation
References
https://github.com/rolangom/wincred/blob/3fd39186ee32add9c12046cdccf2765d19565335/index.ts%23L20
https://snyk.io/vuln/SNYK-JS-WINCRED-1078538
Related Vulnerabilities
CVE-2021-32573 Vulnerability in npm package express-cart
CVE-2019-13127 Vulnerability in npm package mxgraph
CVE-2018-11770 Vulnerability in maven package org.apache.spark:spark-core
CVE-2018-18853 Vulnerability in maven package io.spray:spray-json_2.10
CVE-2022-25898 Vulnerability in maven package org.webjars.npm:jsrsasign