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

High severity, published 2026-07-14. Update easycorp/easyadmin-bundle to 5.0.13 or later: composer update easycorp/easyadmin-bundle.

Canonical URL: https://buzzphp.com/security/ghsa-8559-gwj3-q37r · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 7.6) |
| Published | 2026-07-14 |
| Updated | 2026-07-14 |
| CVE | [CVE-2026-54087](https://nvd.nist.gov/vuln/detail/CVE-2026-54087) |
| GHSA | [GHSA-8559-gwj3-q37r](https://github.com/advisories/GHSA-8559-gwj3-q37r) |
| Weakness | CWE-79, CWE-434 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| easycorp/easyadmin-bundle | >= 5.0.0, < 5.0.13 | 5.0.13 |

## What to do

Update easycorp/easyadmin-bundle to 5.0.13 or later: composer update easycorp/easyadmin-bundle.

Check which version you run with `composer show easycorp/easyadmin-bundle`, and every affected package with `composer audit`.

## About this advisory

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.

## Links

- [GHSA-8559-gwj3-q37r on GitHub](https://github.com/advisories/GHSA-8559-gwj3-q37r)
- [CVE-2026-54087 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-54087)
- [All Composer security advisories](https://buzzphp.com/security)
