CVE-2022-24278
CRITICAL 9.8CVSS 3.1Directory traversal in convert-svg-core
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.
- Published
- 10 Jun 2022
- Last modified
- 10 Sep 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-5f47-rcg5-9m24SNYK-JS-CONVERTSVGCORE-2859830
- Sources
- NVDJSONOSV GHSA-5f47-rcg5-9m24JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | convert-svg_project | convert-svgcpe:2.3:a:convert-svg_project:convert-svg:*:*:*:*:*:node.js:*:* |
< 0.6.4 | 0.6.4 |
| OSV | npm | convert-svg-core | < 0.6.4 | 0.6.4 |
References
- https://github.com/neocotic/convert-svg/commit/2bbc498c5029238637206661dbac9e44d37d17c5 · Patch, Third Party Advisory, WEB
- https://github.com/neocotic/convert-svg/issues/86 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/neocotic/convert-svg/pull/87 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-2859830 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24278 · ADVISORY
- https://github.com/neocotic/convert-svg · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 10 Jun 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 11 Jun 2022)