Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. convert-svg-to-jpeg
  4. ›
  5. CVE-2021-23631

CVE-2021-23631: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

January 27, 2022

This affects all versions of package convert-svg-core; all versions of package convert-svg-to-png; all versions of package convert-svg-to-jpeg. Using a specially crafted SVG file, an attacker could read arbitrary files from the file system and then show the file content as a converted PNG file.

References

  • gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14
  • github.com/advisories/GHSA-jv7g-9g6q-cxvw
  • nvd.nist.gov/vuln/detail/CVE-2021-23631
  • snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785
  • snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245
  • snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244

Code Behaviors & Features

Detect and mitigate CVE-2021-23631 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.5.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/convert-svg-to-jpeg/CVE-2021-23631.yml

Spotted a mistake? Edit the file on GitLab.

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

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