CVE-2022-24278
Directory traversal in convert-svg-core
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high).
Description
The package convert-svg-core before 0.6.4 are vulnerable to Directory Traversal due to improper sanitization of SVG tags. Exploiting this vulnerability is possible by using a specially crafted SVG file.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | convert-svg-core | 0.6.4 |
References
- https://github.com/neocotic/convert-svg
- https://github.com/neocotic/convert-svg/commit/2bbc498c5029238637206661dbac9e44d37d17c5
- https://github.com/neocotic/convert-svg/issues/86
- https://github.com/neocotic/convert-svg/pull/87
- https://nvd.nist.gov/vuln/detail/CVE-2022-24278
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-2859830