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

Medium 5.3 Published Updated

Attackers can execute arbitrary JavaScript via malicious SVG uploads, leading to session theft and account takeover in applications using this library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-49971?

CVE-2026-49971 is a medium-severity cross-site scripting vulnerability in plank laravel-mediable, published on 13 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2026-49971?

How do I fix CVE-2026-49971?

No fix has been published for CVE-2026-49971 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-49971 being exploited?

There is no known exploitation of CVE-2026-49971 in the wild and no public exploit code.

Sources

Also known as GHSA-9j79-936r-7fx2.

Is CVE-2026-49971 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free