{"id":"CVE-2019-18857","aliases":["CVE-2019-18857","GHSA-gf8j-v8x5-h9qp"],"related":[],"kind":"vulnerability","state":"published","title":"XSS in enshrined/svg-sanitize due to mishandled script and data values in attributes","summary":"darylldoyle svg-sanitizer before 0.12.0 mishandles script and data values in attributes, as demonstrated by unexpected whitespace such as in the javascript&#9;:alert substring.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"darylldoyle svg-sanitizer before 0.12.0 mishandles script and data values in attributes, as demonstrated by unexpected whitespace such as in the javascript&#9;:alert substring.","source":"cvelist"},{"lang":"en","text":"enshrined/svg-sanitize before 0.12.0 mishandles script and data values in attributes, as demonstrated by unexpected whitespace such as in the javascript&#9;:alert substring.","format":"markdown","source":"ghsa"},{"lang":"es","text":"darylldoyle svg-sanitizer versiones anteriores 0.12.0, maneja inapropiadamente un script y valores de datos en los atributos, como es demostrado por un espacio en blanco inesperado tal y como en la subcadena javascript\t:alert.","source":"nvd"}],"published":"2019-11-11T14:34:59.000Z","modified":"2026-06-17T02:25:28.893Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/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:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.12.0"}],"ecosystem":"Packagist","package":"enshrined/svg-sanitize","purl":"pkg:composer/enshrined/svg-sanitize","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.12.0"}],"vendor":"svg-sanitizer_project","product":"svg-sanitizer","cpe":"cpe:2.3:a:svg-sanitizer_project:svg-sanitizer:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/darylldoyle/svg-sanitizer/commit/51ca4b713f3706d6b27769c6296bbc0c28a5bbd0","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/darylldoyle/svg-sanitizer/compare/0.11.0...0.12.0","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-18857","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/darylldoyle/svg-sanitizer","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-18857","url":"https://www.cve.org/CVERecord?id=CVE-2019-18857","licence":"CVE Terms of Use","modified":"2024-08-05T02:02:39.688Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gf8j-v8x5-h9qp","url":"https://github.com/advisories/GHSA-gf8j-v8x5-h9qp","licence":"CC-BY-4.0","modified":"2023-11-08T04:01:26.579Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-18857","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-18857","licence":"Public domain","modified":"2026-06-17T02:25:28.893Z"}],"updatedAt":"2026-11-25T22:57:47.880Z","epss":{"score":0.01036,"percentile":0.6484,"date":"2026-12-01T12:00:22.000Z"}}