Loading...
Skip to main content

CVE-2026-49970 — Vulnerability in plank/laravel-mediable — CVE Details

HIGH

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

Published July 13, 2026Updated August 13, 2026Source: osv

Summary

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.

Advisory Timeline

  • First published July 13, 2026 (91 days ago).
  • Last revised August 13, 2026 — 31 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update plank/laravel-mediable to 7.0.0 or later
composer require "plank/laravel-mediable:^7.0.0"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: packagist (1).

PackageEcosystemAffectedFixed In
plank/laravel-mediable
packagist
0.1.0, 0.1.1, 0.1.2, 0.1.3 (+87 more)7.0.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-49970?
Laravel-Mediable: path traversal vulnerability in the File::sanitizePath() This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2026-49970?
CVE-2026-49970 affects plank/laravel-mediable. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-49970 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-xv8g-76mx-2rxc

Related CVEs

  • CVE-2026-65954
    HIGH

    PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey()

  • CVE-2026-61825
    HIGH

    code16/sharp has a stored XSS via data-html-content Sanitizer Bypass

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies