BuzzPHP
LightDarkSystem

EasyAdmin: Stored Cross-Site Scripting (XSS) via uploaded files served inline in FileField and ImageField

High severity. Published 14 July 2026. Update easycorp/easyadmin-bundle to 5.0.13 or later: composer update easycorp/easyadmin-bundle.

Which versions are affected?

PackageAffected versionsFixed in
easycorp/easyadmin-bundle (opens in a new tab)>= 5.0.0, < 5.0.135.0.13

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show easycorp/easyadmin-bundle
composer audit

Advisory details

SeverityHighCVSS 7.6
Published
Updated
CVECVE-2026-54087 (opens in a new tab)
GHSAGHSA-8559-gwj3-q37r (opens in a new tab)
WeaknessCWE-79, CWE-434

What the advisory says

EasyAdmin's FileField and ImageField accept browser-executable file types by default (FileField applies no MIME/extension restrictions; ImageField's default Image constraint accepts SVG). When the upload directory is configured inside the public web root — as shown in the documentation — EasyAdmin links to the stored file inline (no download attribute or Content-Disposition: attachment).

An attacker with access to a form using these fields can upload an .html (FileField) or .svg (ImageField) file containing JavaScript.

Source: GHSA-8559-gwj3-q37r (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories