Server-side Request Forgery (SSRF) Affecting plank/laravel-mediable package, versions <7.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-PLANKLARAVELMEDIABLE-17966726
  • published14 Jul 2026
  • disclosed13 Jul 2026
  • creditUnknown

Introduced: 13 Jul 2026

NewCVE-2026-49969  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade plank/laravel-mediable to version 7.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through RemoteUrlAdapter in MediaUploader::fromSource(). An attacker can make the server issue arbitrary HTTP requests and reach internal resources by supplying a caller-controlled remote URL. The vulnerable path accepts unvalidated URLs for remote media imports, so crafted inputs can target RFC-1918 addresses, localhost, cloud metadata endpoints, or other non-public schemes. From the user’s perspective, this can expose internal data and cloud credentials such as instance metadata tokens, and it can be used to probe or retrieve resources on the server’s private network.

Notes

  • mediable.allowed_remote_schemes and mediable.allowed_remote_hosts gate the remote-import path; deployments that leave both at their defaults expose the broadest URL handling, while tightening either list narrows which remote sources can be fetched.
  • When no host allowlist is configured, the vulnerable path still accepts loopback and RFC-1918 targets as long as the caller supplied a URL the adapter would process, which is the condition that makes cloud metadata and other internal services reachable.

References

CVSS Base Scores

version 4.0
version 3.1