CVE-2019-18857
HIGH 7.5CVSS 3.1XSS in enshrined/svg-sanitize due to mishandled script and data values in attributes
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.
- Published
- 11 Nov 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-gf8j-v8x5-h9qp
- Sources
- NVDJSONOSV GHSA-gf8j-v8x5-h9qpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | svg-sanitizer_project | svg-sanitizercpe:2.3:a:svg-sanitizer_project:svg-sanitizer:*:*:*:*:*:*:*:* |
< 0.12.0 | 0.12.0 |
| OSV | Packagist | enshrined/svg-sanitize | < 0.12.0 | 0.12.0 |
References
- https://github.com/darylldoyle/svg-sanitizer/commit/51ca4b713f3706d6b27769c6296bbc0c28a5bbd0 · Patch, Third Party Advisory, WEB
- https://github.com/darylldoyle/svg-sanitizer/compare/0.11.0...0.12.0 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-18857 · ADVISORY
- https://github.com/darylldoyle/svg-sanitizer · PACKAGE
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 11 Nov 2019)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 8 Jan 2020)