neocotic/convert-svg · Security
Directory traversal in convert-svg-core
- GHSA ID
- GHSA-5f47-rcg5-9m24
- CVE ID
- CVE-2022-24278
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Description
The package convert-svg-core before 0.6.4 is vulnerable to Directory Traversal due to improper sanitization of SVG tags. Exploiting this vulnerability is possible by using a specially crafted SVG file.
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-24278 ↗
- https://github.com/neocotic/convert-svg/issues/86 ↗
- https://github.com/neocotic/convert-svg/pull/87 ↗
- https://github.com/neocotic/convert-svg/commit/2bbc498c5029238637206661dbac9e44d37d17c5 ↗
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-2859830 ↗
- https://github.com/advisories/GHSA-5f47-rcg5-9m24 ↗