Advisory

GHSA-xv8g-76mx-2rxc

Also known as: CVE-2026-49970

Summary

Laravel-Mediable: path traversal vulnerability in the File::sanitizePath()

Details

Laravel-Mediable before 7.0.0 contains a path traversal vulnerability in the File::sanitizePath() function that allows attackers to write uploaded files to arbitrary locations by controlling the directory argument passed to MediaUploader::toDestination(). Attackers can exploit the permissive character-class regex that allows both dot and slash characters combined with an ineffective trailing trim() call to bypass sanitization and upload files to sensitive locations such as the document root, environment configuration files, or application configuration directories, enabling remote code execution.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-07-13 21:31 UTC
Modified
2026-08-13 18:51 UTC

Affected packages and fixes

plank/laravel-mediable

Packagist · All systems

Affected

  • introduced 0, fixed 7.0.0 (ecosystem)

Fixed versions

7.0.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences