{"id":"CVE-2021-23399","aliases":["CVE-2021-23399","GHSA-v85c-hgq5-7pfw"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Command Injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Esto afecta a todas las versiones del paquete wincred. Si se da entrada de usuario controlado por el atacante a la función getCredential, es posible para un atacante ejecutar comandos arbitrarios. Esto es debido al uso de la función child_process exec sin un saneamiento de entrada","source":"nvd"}],"published":"2021-06-28T07:30:13.604Z","modified":"2026-06-17T03:38:41.487Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-20","CWE-78"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"wincred","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.0.2"}],"ecosystem":"npm","package":"wincred","purl":"pkg:npm/wincred","source":"ghsa"},{"ranges":[],"vendor":"wincred_project","product":"wincred","cpe":"cpe:2.3:a:wincred_project:wincred:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-WINCRED-1078538","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rolangom/wincred/blob/3fd39186ee32add9c12046cdccf2765d19565335/index.ts%23L20","tags":["broken-link","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23399","tags":["advisory"],"sources":["ghsa"]}],"credits":["OmniTaint"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23399","url":"https://www.cve.org/CVERecord?id=CVE-2021-23399","licence":"CVE Terms of Use","modified":"2024-09-17T03:02:52.915Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v85c-hgq5-7pfw","url":"https://github.com/advisories/GHSA-v85c-hgq5-7pfw","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:07.389Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23399","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23399","licence":"Public domain","modified":"2026-06-17T03:38:41.487Z"}],"updatedAt":"2026-11-25T22:58:02.339Z","epss":{"score":0.01336,"percentile":0.7204,"date":"2026-12-01T12:00:22.000Z"}}