Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. semver-tags
  4. ›
  5. CVE-2022-25853

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

February 6, 2023 (updated March 25, 2025)

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

References

  • github.com/advisories/GHSA-8h3g-hcwp-6hxq
  • github.com/jtrussell/semver-tags
  • github.com/jtrussell/semver-tags/blob/db1ba680bafed0d51e1bb36bd38f2c5439fe8b00/lib/get-tags.js
  • github.com/jtrussell/semver-tags/blob/db1ba680bafed0d51e1bb36bd38f2c5439fe8b00/lib/get-tags.js%23L21
  • nvd.nist.gov/vuln/detail/CVE-2022-25853
  • security.snyk.io/vuln/SNYK-JS-SEMVERTAGS-3175612

Code Behaviors & Features

Detect and mitigate CVE-2022-25853 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.4.10

Solution

Unfortunately, there is no solution available yet.

Impact 7.4 HIGH

CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • 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')

Source file

npm/semver-tags/CVE-2022-25853.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:34 +0000.