{"id":"CVE-2021-23631","aliases":["CVE-2021-23631","GHSA-jv7g-9g6q-cxvw"],"related":[],"kind":"vulnerability","state":"published","title":"Directory Traversal","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Esto afecta a todas las versiones del paquete convert-svg-core; todas las versiones del paquete convert-svg-to-png; todas las versiones del paquete convert-svg-to-jpeg. Usando un archivo SVG especialmente diseñado, un atacante podría leer archivos arbitrarios del sistema de archivos y luego mostrar el contenido del archivo como un archivo PNG convertido","source":"nvd"}],"published":"2022-01-21T20:05:23.621Z","modified":"2026-06-17T03:38:50.747Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"convert-svg-core","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"convert-svg-to-png","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"convert-svg-to-jpeg","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.5.0"}],"ecosystem":"npm","package":"convert-svg-core","purl":"pkg:npm/convert-svg-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.5.0"}],"ecosystem":"npm","package":"convert-svg-to-png","purl":"pkg:npm/convert-svg-to-png","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.5.0"}],"ecosystem":"npm","package":"convert-svg-to-jpeg","purl":"pkg:npm/convert-svg-to-jpeg","source":"ghsa"},{"ranges":[],"vendor":"convert-svg-core_project","product":"convert-svg-core","cpe":"cpe:2.3:a:convert-svg-core_project:convert-svg-core:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23631","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/neocotic/convert-svg","tags":["package"],"sources":["ghsa"]}],"credits":["Aritra Chakraborty"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23631","url":"https://www.cve.org/CVERecord?id=CVE-2021-23631","licence":"CVE Terms of Use","modified":"2024-09-16T18:07:59.806Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jv7g-9g6q-cxvw","url":"https://github.com/advisories/GHSA-jv7g-9g6q-cxvw","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:12.134Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23631","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23631","licence":"Public domain","modified":"2026-06-17T03:38:50.747Z"}],"updatedAt":"2026-11-25T22:58:06.618Z","epss":{"score":0.02044,"percentile":0.81734,"date":"2026-12-01T12:00:22.000Z"}}