CVE-2019-18857 json
XSS in enshrined/svg-sanitize due to mishandled script and data values in attributes
published 2019-11-11 6 y ago modified 2026-06-17 4 mo ago also GHSA-gf8j-v8x5-h9qp , EUVD-2020-0264
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
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	:alert substring.
Patch / fix
- packagist enshrined/svg-sanitize 0.12.0
- svg-sanitizer_project svg-sanitizer 0.12.0
Exploit prediction
1.04% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | enshrined/svg-sanitize | <0.12.0 |
0.12.0 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/darylldoyle/svg-sanitizer/commit/51ca4b713f3706d6b27769c6296bbc0c28a5bbd0
web, patch, third-party-advisory
-
github.com
/darylldoyle/svg-sanitizer/compare/0.11.0...0.12.0
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2019-18857
advisory
-
github.com
/darylldoyle/svg-sanitizer
package
Sources
- CVE List CVE-2019-18857
- GitHub Advisory GHSA-gf8j-v8x5-h9qp
- NVD CVE-2019-18857
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.