Impact
Statamic's SVG sanitization was skipped for uploaded files whose extension was not written in plain lowercase — for example an uppercase extension, or one with trailing whitespace.
Sites that have disabled the statamic.assets.lowercase setting are affected more seriously, as an unsanitized SVG could be stored on a public, web-accessible asset disk and executed in the context of the site when viewed.
Already-stored files are not modified by this fix. Sites that ran with statamic.assets.lowercase disabled should review any existing SVG assets uploaded through a form.
Patches
This has been fixed in 5.74.4 and 6.27.2.
Impact
Statamic's SVG sanitization was skipped for uploaded files whose extension was not written in plain lowercase — for example an uppercase extension, or one with trailing whitespace.
Sites that have disabled the
statamic.assets.lowercasesetting are affected more seriously, as an unsanitized SVG could be stored on a public, web-accessible asset disk and executed in the context of the site when viewed.Already-stored files are not modified by this fix. Sites that ran with
statamic.assets.lowercasedisabled should review any existing SVG assets uploaded through a form.Patches
This has been fixed in 5.74.4 and 6.27.2.