Skip to main content
Menu
Advisories

SVG uploads permitted on a write path the sanitizer does not cover

GHSA-VM75-MQ6X-X57MPublished Updated GitHub

Description

Safe SVG sanitizes SVGs during a normal WordPress upload flow. This means if a plugin allows media uploads that bypass this flow, the filters Safe SVG uses are not fired and the SVG is allowed but never sanitized.

This is fixed in Safe SVG v2.5.2 by ensuring SVGs are sanitized both when they are uploaded and when they are moved to the uploads directory.

Affected versions

References

GitHub · 10up/safe-svg