{"cve":"CVE-2021-23631","nvd":{"published":"2022-01-21T20:15:08.017","modified":"2026-06-17T03:38:50.747","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-22"],"references":["https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14","https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785","https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245","https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244","https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14"],"products":["convert-svg-core_project:convert-svg-core"],"source":"nvd","synced_at":"2026-10-19T21:27:20.926095847+00:00"},"epss":{"cve":"CVE-2021-23631","score":0.01978,"percentile":0.80527,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-jv7g-9g6q-cxvw","url":"https://osv.dev/vulnerability/GHSA-jv7g-9g6q-cxvw","summary":"Path Traversal in convert-svg packages","modified":"2023-11-08T04:05:12.134865Z","packages":[{"ecosystem":"npm","name":"convert-svg-core","purl":"pkg:npm/convert-svg-core","ranges":["<=0.5.0"],"fixed":[]},{"ecosystem":"npm","name":"convert-svg-to-png","purl":"pkg:npm/convert-svg-to-png","ranges":["<=0.5.0"],"fixed":[]},{"ecosystem":"npm","name":"convert-svg-to-jpeg","purl":"pkg:npm/convert-svg-to-jpeg","ranges":["<=0.5.0"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}