CVE-2026-48555: Spatie Laravel Media Library SSRF in addMediaFromUrl

CVE-2026-48555 · Severity: high · CVSS 7.4 · Published 2026-05-29

Spatie Laravel Media Library is a popular tool used by developers to manage file uploads and media attachments in web applications. A security flaw allows attackers to force the web server to make unauthorized requests to other internal or external websites. This could lead to the exposure of sensitive internal data or allow the server to be used as a jumping-off point for further attacks on the company's private network.

Vendors: Packagist, Spatie.

Quick answers

Is CVE-2026-48555 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-48555 being exploited in the wild.
How severe is CVE-2026-48555?
High severity, with a CVSS score of 7.4, published 29 May 2026.
Which products and versions are affected?
spatie/laravel-medialibrary (Packagist) < 11.23.0, ECOSYSTEM:introduced=0,fixed=11.23.0; Spatie Laravel Media Library < 11.23.0.
Is there a fix for CVE-2026-48555?
Yes. spatie/laravel-medialibrary (Packagist): upgrade to 11.23.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-48555 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-48555?
Check whether you run spatie/laravel-medialibrary (Packagist) or Spatie Laravel Media Library 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

  • spatie/laravel-medialibrary (Packagist): upgrade to 11.23.0 or later
    composer require spatie/laravel-medialibrary:^11.23.0

Technical details

A Server-Side Request Forgery (SSRF) vulnerability exists in Spatie Laravel Media Library before version 11.23.0. The vulnerability is located in the addMediaFromUrl() method within InteractsWithMedia.php, which fails to sufficiently validate user-supplied URLs. A remote attacker with low privileges can provide a malicious URL, causing the server to initiate arbitrary outbound HTTP requests. This can be used to probe internal network services, bypass firewalls, or access metadata services in cloud environments. The issue was addressed in version 11.23.0 by hardening filename validation and documenting SSRF boundaries.

Affected products

  • Spatie laravel-medialibrary < 11.23.0

Identifiers

  • CVE-2026-48555
  • GHSA-fggg-964j-3j7h

Timeline

  • 2026-05-28: patched: Fix merged in pull request 3939
  • 2026-05-29: advisory: GitHub Advisory published
  • 2026-05-29: disclosed: NVD publication date

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.