GitHub Advisoryadvisory · npm
GHSA-jv7g-9g6q-cxvw Path Traversal in convert-svg packages
HIGH
Official page ↗
- Aliases
- CVE-2021-23631
- Ecosystem
- npm
- Packages
- convert-svg-core, convert-svg-to-png, convert-svg-to-jpeg
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2022-01-24
Affected packages
• npm convert-svg-core: <= 0.5.0 (no fix yet)
• npm convert-svg-to-png: <= 0.5.0 (no fix yet)
• npm convert-svg-to-jpeg: <= 0.5.0 (no fix yet)
Description
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.
Related
Alias · CVE (1)
- CVE-2021-23631 This affects all versions of package convert-svg-core; all versions of package convert-svg-to-png; all versions of package… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23631 advisory
- https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14 web
- https://github.com/neocotic/convert-svg package
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785 web
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245 web
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244 web