{"id":"CVE-2021-23631","aliases":["EUVD-2022-0637","GHSA-jv7g-9g6q-cxvw"],"status":"published","title":"Directory Traversal","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01978,"percentile":0.80671,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-22"],"published":"2022-01-21T20:05:23Z","modified":"2026-06-17T03:38:50Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"convert-svg-core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.5.0"}]}]},{"source":"ghsa","ecosystem":"npm","package":"convert-svg-to-png","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.5.0"}]}]},{"source":"ghsa","ecosystem":"npm","package":"convert-svg-to-jpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.5.0"}]}]},{"source":"osv","ecosystem":"npm","package":"convert-svg-core","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.5.0"}]}]},{"source":"osv","ecosystem":"npm","package":"convert-svg-to-png","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.5.0"}]}]},{"source":"osv","ecosystem":"npm","package":"convert-svg-to-jpeg","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.5.0"}]}]}],"products":[{"vendor":"convert-svg-core_project","product":"convert-svg-core"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23631","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-jv7g-9g6q-cxvw"},{"url":"https://github.com/neocotic/convert-svg","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-23631","title":"Directory Traversal","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.","status":"published","published":"2022-01-21T20:05:23.621Z","modified":"2024-09-16T18:07:59.806Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:33:00.819444Z"}],"euvd":[{"id":"EUVD-2022-0637","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.","status":"published","published":"2022-01-21T20:05:23Z","modified":"2024-09-16T18:07:59Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","level":"high"}],"updated_at":"2026-11-03T00:55:35.786755Z"}],"ghsa":[{"id":"GHSA-jv7g-9g6q-cxvw","title":"Path Traversal in convert-svg packages","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.","status":"published","published":"2022-01-27T14:04:28Z","modified":"2023-02-03T05:05:12Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:36:42.703723Z"}],"nvd":[{"id":"CVE-2021-23631","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.","status":"published","published":"2022-01-21T20:15:08.017Z","modified":"2026-06-17T03:38:50.747Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:07:03.821385Z"}],"osv":[{"id":"GHSA-jv7g-9g6q-cxvw","title":"Path Traversal in convert-svg packages","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.","status":"published","published":"2022-01-27T14:04:28Z","modified":"2023-11-08T04:05:12.134865Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:51.10002Z"}]}}
