Vulnerability · Published Jan 21, 2022 · Assigned by snyk
CVE-2021-23631Directory Traversal
High 7.5
In plain English
A high-severity security flaw in convert-svg-core. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities).
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)2.0%top 19.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | convert-svg-core | no fix listed | GHSA-jv7g-9g6q-cxvw |
| npm | convert-svg-to-jpeg | no fix listed | GHSA-jv7g-9g6q-cxvw |
| npm | convert-svg-to-png | no fix listed | GHSA-jv7g-9g6q-cxvw |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | convert-svg-core | 0 – before unspecified |
| n/a | convert-svg-to-png | 0 – before unspecified |
| n/a | convert-svg-to-jpeg | 0 – before unspecified |
References
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245 x_refsource_MISC
- https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14 x_refsource_MISC