A stored cross-site scripting (XSS) vulnerability was identified in the SVG sanitization logic. The regex pattern used to strip on* event handler attributes could be bypassed using a crafted payload that exploits how the pattern matches attribute boundaries.
media.library.create)The vulnerability has been patched in v3.7.14 and v4.1.10. All users are encouraged to upgrade to the latest patched version.
If upgrading immediately is not possible:
svg to the blocked extensions in media configurationmedia.clean_vectors to true in configuration (enabled by default){
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2026-04-14T22:29:50Z",
"nvd_published_at": "2026-04-14T21:16:25Z",
"severity": "MODERATE"
}