jtrussell/semver-tags · Security
semver-tags is vulnerable to Command Injection via the getGitTagsRemote function
- GHSA ID
- GHSA-8h3g-hcwp-6hxq
- CVE ID
- CVE-2022-25853
- Severity
- high
- Published
- Updated
- CVSS
- 7.8 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 7.8 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Description
All versions of the package semver-tags are vulnerable to Command Injection via the getGitTagsRemote function due to improper input sanitization.
CWEs
- 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')
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-25853 ↗
- https://security.snyk.io/vuln/SNYK-JS-SEMVERTAGS-3175612 ↗
- https://github.com/jtrussell/semver-tags/blob/db1ba680bafed0d51e1bb36bd38f2c5439fe8b00/lib/get-tags.js#L21 ↗
- https://github.com/jtrussell/semver-tags/blob/db1ba680bafed0d51e1bb36bd38f2c5439fe8b00/lib/get-tags.js%23L21 ↗
- https://github.com/advisories/GHSA-8h3g-hcwp-6hxq ↗