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.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785 | third party advisory exploit |
https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244 | third party advisory exploit |
https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245 | third party advisory exploit |
https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14 | third party advisory exploit |