CVE-2026-49971

Laravel-Mediable < 7.0.0 Stored XSS via SVG File Upload

Published Jul 13, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Laravel‑Mediable before version 7.0.0 contains a stored cross‑site scripting flaw (CWE‑79) that allows attackers to upload SVG files with embedded JavaScript. The malicious content can be placed in onload event handlers, victim opens or previews the SVG, the code executes with full DOM privileges, enabling session cookie theft, CSRF token capture, and account takeover.

Affected Systems

The vulnerable package is Laravel‑Mediable from the vendor plank. All releases older than 7.0.0 are affected and no specific build or patch level is enumerated in the advisory.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, and the EPSS score is < 1%. The vulnerability is not listed in the CISA KEV catalog, suggesting limited documented exploitation. The likely attack vector is remote via the public web interface, using file upload functionality, and it can be triggered by both authenticated and unauthenticated users. An attacker who successfully uploads a malicious SVG can target any user who subsequently opens or previews the file, resulting in persistent client‑side compromise with full DOM access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Laravel‑Mediable package to version 7.0.0 or later.
  • If an upgrade is not feasible, disable SVG file upload support or limit allowed file types to exclude SVG files.
  • Delete any SVG files that were uploaded prior to the upgrade to remove stored malicious payloads.

Generated by OpenCVE AI on July 31, 2026 at 11:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Plank
Plank laravel-mediable
Vendors & Products Plank
Plank laravel-mediable
Type Values Removed Values Added
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.
Title Laravel-Mediable < 7.0.0 Stored XSS via SVG File Upload
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:L'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 14, 2026, 9:33 PM
Reserved
Jun 2, 2026, 4:30 PM
Status
Deferred
Published
Jul 13, 2026, 7:17 PM
Modified
Oct 24, 2026, 10:10 PM