CVE-2021-23631
HIGH 7.5CVSS 3.1Path Traversal in convert-svg packages
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.
- Published
- 21 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-jv7g-9g6q-cxvw
- Sources
- NVDJSONOSV GHSA-jv7g-9g6q-cxvwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| 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 |
| NVD | nvd@nist.gov (Primary) | 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 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | convert-svg-core_project | convert-svg-corecpe:2.3:a:convert-svg-core_project:convert-svg-core:*:*:*:*:*:node.js:*:* |
all versions | |
| OSV | npm | convert-svg-core | <= 0.5.0 | |
| OSV | npm | convert-svg-to-png | <= 0.5.0 | |
| OSV | npm | convert-svg-to-jpeg | <= 0.5.0 |
References
- https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23631 · ADVISORY
- https://github.com/neocotic/convert-svg · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 21 Jan 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 27 Jan 2022)