# CVE-2022-25853: semver-tags is vulnerable to Command Injection via the getGitTagsRemote function

- Severity: High 7.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- 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): 1.09%, higher than 66% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-02-06T05:00:01.967Z
- Modified: 2026-06-17T04:34:23.653Z
- Also known as: GHSA-8h3g-hcwp-6hxq
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: snyk

## Description

All versions of the package semver-tags are vulnerable to Command Injection via the getGitTagsRemote function due to improper input sanitization.

(As written by CVE List.)

## Affected

- semver-tags: before *
- semver-tags (npm): up to 0.4.10
- semver-tags_project semver-tags: no versions given

## Every score

- snyk: CVSS:3.1 7.4 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-JS-SEMVERTAGS-3175612> (exploit, third-party-advisory, web)
- <https://github.com/jtrussell/semver-tags/blob/db1ba680bafed0d51e1bb36bd38f2c5439fe8b00/lib/get-tags.js%23L21> (broken-link, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25853> (advisory)
- <https://github.com/jtrussell/semver-tags> (package)
- <https://github.com/jtrussell/semver-tags/blob/db1ba680bafed0d51e1bb36bd38f2c5439fe8b00/lib/get-tags.js#L21> (web)

## Sources

- CVE List: [CVE-2022-25853](https://www.cve.org/CVERecord?id=CVE-2022-25853), CVE Terms of Use, modified 2025-03-25
- GitHub Advisory Database: [GHSA-8h3g-hcwp-6hxq](https://github.com/advisories/GHSA-8h3g-hcwp-6hxq), CC-BY-4.0, modified 2025-03-25
- NVD: [CVE-2022-25853](https://nvd.nist.gov/vuln/detail/CVE-2022-25853), Public domain, modified 2026-06-17

---

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