GHSA-jv7g-9g6q-cxvw
Path Traversal in convert-svg packages
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | convert-svg-core | <= 0.5.0 | no fix listed |
| npm | convert-svg-to-png | <= 0.5.0 | no fix listed |
| npm | convert-svg-to-jpeg | <= 0.5.0 | no fix listed |
Details
As written in the advisory (Markdown source, shown as plain text).
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
External links from the advisory. They lead to third-party sites.
- https://nvd.nist.gov/vuln/detail/CVE-2021-23631
- https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14
- https://github.com/neocotic/convert-svg
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244