Quick answers
- Is CVE-2026-49970 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-49970 being exploited in the wild.
- How severe is CVE-2026-49970?
- High severity, with a CVSS score of 8.8, published 13 July 2026.
- Which products and versions are affected?
- plank/laravel-mediable (Packagist) < 7.0.0, ECOSYSTEM:introduced=0,fixed=7.0.0; Plank Laravel-Mediable < 7.0.0; Plank Mediable before 7.0.0.
- Is there a fix for CVE-2026-49970?
- Yes. plank/laravel-mediable (Packagist): upgrade to 7.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-49970 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-49970?
- Check whether you run plank/laravel-mediable (Packagist), Plank Laravel-Mediable or Plank Mediable at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- plank/laravel-mediable (Packagist): upgrade to 7.0.0 or later
composer require plank/laravel-mediable:^7.0.0
Technical details
This is a path traversal vulnerability (CWE-22) in the File::sanitizePath() function within Laravel-Mediable versions before 7.0.0. The vulnerability stems from an insufficiently restrictive regex pattern in the sanitization logic that permits both dot (.) and forward slash (/) characters, combined with an ineffective trailing trim() operation. This allows an attacker who has authentication privileges and can control the directory argument passed to MediaUploader::toDestination() to bypass path sanitization. An authenticated attacker can exploit this to write uploaded files to sensitive locations including the application root, configuration directories containing environment variables, or other writable directories, leading to remote code execution if PHP files are uploaded. The patch is available in version 7.0.0 and later.
Affected products
- Plank Laravel-Mediable before 7.0.0
Identifiers
- CVE-2026-49970
- GHSA-xv8g-76mx-2rxc
Timeline
- 2026-07-13: disclosed
- 2026-07-13: patched: Version 7.0.0 includes the fix