# CVE-2022-29080: Command injection in npm-dependency-versions

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.18%, higher than 82% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-12T04:45:34.000Z
- Modified: 2026-06-17T04:39:32.563Z
- Also known as: GHSA-m7xq-8jp8-rj2c
- Weaknesses: CWE-77, CWE-78
- Assigned by: mitre

## Description

The npm-dependency-versions package through 0.3.0 for Node.js allows command injection if an attacker is able to call dependencyVersions with a JSON object in which pkgs is a key, and there are shell metacharacters in a value.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- npm-dependency-versions (npm): up to 0.3.0
- npm-dependency-versions_project npm-dependency-versions: up to 0.3.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/barneycarroll/npm-dependency-versions/issues/6> (exploit, issue-tracking, third-party-advisory, web)
- <https://www.npmjs.com/package/npm-dependency-versions> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-29080> (advisory)
- <https://github.com/barneycarroll/npm-dependency-versions> (package)

## Sources

- CVE List: [CVE-2022-29080](https://www.cve.org/CVERecord?id=CVE-2022-29080), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-m7xq-8jp8-rj2c](https://github.com/advisories/GHSA-m7xq-8jp8-rj2c), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-29080](https://nvd.nist.gov/vuln/detail/CVE-2022-29080), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-29080 · Whole record: https://cve.day/CVE-2022-29080.json · Rebuilt by cve.day 2026-11-25T22:58:10.548Z
