What’s Vulnerable › Vulnerabilities

CVE-2026-49971: Laravel-Mediable < 7.0.0 Stored XSS via SVG File Upload

Description

Laravel-Mediable before 7.0.0 contains a stored cross-site scripting vulnerability that allows authenticated or anonymous users to execute arbitrary JavaScript by uploading unsanitized SVG files containing embedded scripts in onload event handlers, script tags, or foreignObject elements. Attackers can store persistent XSS payloads in uploaded SVG files that execute with full DOM access when victims open or preview the file, enabling session cookie theft, CSRF token capture, and account takeover.

Affected products

How to fix

Upgrade to a fixed version: plank laravel-mediable 7.0.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-49971 or the next vulnerability affects your stack