CVE-2026-48555: Spatie/laravel medialibrary Spatie Laravel Media Library Contains Vulnerability

MODERATE
Advisory Identifier: GHSA-fggg-964j-3j7h
CVSS 7.4
CWE-918
Published
Advisory Summary

CVE-2026-48555 is a MODERATE (CVSS 7.4) spatie laravel media library contains vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Spatie/laravel medialibrary libraries in the Packagist ecosystem. The issue involves spatie laravel media library contains a server-side request forgery vulnerability. Remediation is available by upgrading affected packages to version 11.23.0.

CVE-2026-48555 at a Glance

CVE Identifier CVE-2026-48555
GHSA Identifier GHSA-fggg-964j-3j7h
Severity MODERATE
CVSS v3.1 Base Score 7.4
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Spatie/laravel medialibrary
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-48555

To remediate this vulnerability, upgrade all affected Spatie/laravel medialibrary dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

spatie/laravel-medialibrary fixed: 11.23.0
Upgrade spatie/laravel-medialibrary to 11.23.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for spatie/laravel-medialibrary

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-48555, inspect your project dependencies for Spatie/laravel medialibrary:

inspect dependencies for spatie/laravel-medialibrary

Analyze the terminal output to locate any version of Spatie/laravel medialibrary in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 11.23.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Spatie/laravel medialibrary, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Spatie Laravel Media Library before version 11.23.0 contains a server-side request forgery vulnerability that allows remote attackers to cause the server to issue arbitrary outbound HTTP requests by passing user-controlled URLs to the addMediaFromUrl() method in InteractsWithMedia.php.

CVE-2026-48555 Affected Spatie/laravel medialibrary Versions

1 component(s)
Fixed Versions:
11.23.0
Product / Package Ecosystem Affected Versions Fixed Version
spatie/laravel-medialibrary
Packagist
< 11.23.0
11.23.0

References

Frequently Asked Questions

What is CVE-2026-48555?
CVE-2026-48555 is a security vulnerability in Spatie/laravel medialibrary involving Spatie Laravel Media Library contains a server-side request forgery vulnerability under CWE-918: Server-Side Request Forgery (SSRF).
Which Spatie/laravel medialibrary versions are affected?
Affected versions include releases prior to 11.23.0 across affected packages: spatie/laravel-medialibrary.
What version fixes CVE-2026-48555?
Upgrading to 11.23.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spatie/laravel-medialibrary affected?
Yes, spatie/laravel-medialibrary is affected in releases prior to 11.23.0. Upgrade your dependency to 11.23.0 or later.
What is the CVSS score of CVE-2026-48555?
CVE-2026-48555 has a CVSS v3.1 base score of 7.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L.
What CWE is associated with CVE-2026-48555?
CVE-2026-48555 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Packagist dependencies for CVE-2026-48555?
Run the dependency tree command: 'inspect dependencies for spatie/laravel-medialibrary'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fggg-964j-3j7h",
  "modified" : "2026-07-02T21:12:18Z",
  "published" : "2026-05-29T21:31:24Z",
  "aliases" : [ "CVE-2026-48555" ],
  "summary" : "Spatie Laravel Media Library contains a server-side request forgery vulnerability",
  "details" : "Spatie Laravel Media Library before version 11.23.0 contains a server-side request forgery vulnerability that allows remote attackers to cause the server to issue arbitrary outbound HTTP requests by passing user-controlled URLs to the addMediaFromUrl() method in InteractsWithMedia.php.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "spatie/laravel-medialibrary"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "11.23.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-48555"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spatie/laravel-medialibrary/pull/3939"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spatie/laravel-medialibrary/commit/608ea03703d3887c46434f5dda6af56de6346aba"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spatie/laravel-medialibrary"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spatie/laravel-medialibrary/releases/tag/11.23.0"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/spatie-laravel-media-library-ssrf-via-addmediafromurl"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-02T21:12:18Z",
    "nvd_published_at" : "2026-05-29T20:16:28Z"
  }
}