All CVEs / Svg-sanitizer Project
CVE-2019-18857Svg-sanitizer Project Svg-sanitizer
High 7.5 No auth needed
Follow: this CVE · Svg-sanitizer Project · Svg-sanitizer Project Svg-sanitizer We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 65
- Auth required
- No
- Published
- Nov 11, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Svg-sanitizer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | enshrined/svg-sanitize |
< 0.12.0 |
0.12.0 |
composer require "enshrined/svg-sanitize:^0.12.0" |
Per OSV / GitHub Advisories (GHSA-gf8j-v8x5-h9qp). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| svg-sanitizer_project | svg-sanitizer | < 0.12.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory