CVE-2021-23631
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (1.98%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 1.98% probability · 80th percentile
- Public exploits
- None in Exploit-DB
- CISA KEV
- Not listed
- Weakness
- CWE-22
- Affected
- convert-svg-core project/convert-svg-core
- Source
- report@snyk.io
EPSS 2.0% since 26 October 2026; no change recorded yet. Points are recorded when the score first appears and whenever it moves by a percentage point or more.
References
- https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244Exploit, Third Party Advisory
- https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244Exploit, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.