GHSA-fqx8-v33p-4qccMediumCVSS 6.2

Cross-site Scripting in enshrined/svg-sanitize

Published
February 14, 2022
Last Modified
February 5, 2024

🔗 CVE IDs covered (1)

📋 Description

Impact

SVG sanitizer library before version 0.15.0 did not remove HTML elements wrapped in a CDATA section. As a result, SVG content embedded in HTML (fetched as text/html) was susceptible to cross-site scripting. Plain SVG files (fetched as image/svg+xml) were not affected.

Patches

This issue is fixed in 0.15.0 and higher.

Workarounds

There is currently no workaround available without upgrading.

For more information

If you have any questions or comments about this advisory:

🎯 Affected products1

  • composer/enshrined/svg-sanitize:< 0.15.0

🔗 References (6)