Advisory

GHSA-fqx8-v33p-4qcc

Also known as: CVE-2022-23638

Summary

Cross-site Scripting in enshrined/svg-sanitize

Details

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:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-02-14 22:54 UTC
Modified
2024-02-16 08:20 UTC

Affected packages and fixes

enshrined/svg-sanitize

Packagist · All systems

Affected

  • introduced 0, fixed 0.15.0 (ecosystem)

Fixed versions

0.15.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences