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?
| Package | Affected versions | Fixed in |
|---|---|---|
| easycorp/easyadmin-bundle (opens in a new tab) | >= 5.0.0, < 5.0.13 | 5.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 auditAdvisory details
| Severity | HighCVSS 7.6 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-54087 (opens in a new tab) |
| GHSA | GHSA-8559-gwj3-q37r (opens in a new tab) |
| Weakness | CWE-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
- EasyAdmin custom-action dispatcher bypasses access_control on other routes (high, 2 September 2026)
- EasyAdminBundle has path traversal and reflected XSS in Flag and Icon Twig components (opens in a new tab) (medium, 1 July 2026)