Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. easycorp/easyadmin-bundle
  4. ›
  5. CVE-2026-54087

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

July 14, 2026

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. When another user opens it from the backend, it is served from the same origin and the script executes in the context of their authenticated admin session, enabling session/CSRF-token theft or privilege escalation.

Exploitation requires the developer to store uploads in the public directory and a privilege gap between the uploading user and the viewing administrator. This is stored XSS only — it does not allow remote code execution, because uploaded filenames are derived from Symfony’s guessExtension(), which never produces .php/.phtml.

Credit

We would like to thank Emre Dogan for reporting the issue.

References

  • github.com/EasyCorp/EasyAdminBundle/commit/8132b2b0ca3876c9261264fa267106a1b2c10a68
  • github.com/EasyCorp/EasyAdminBundle/releases/tag/v5.0.13
  • github.com/EasyCorp/EasyAdminBundle/security/advisories/GHSA-8559-gwj3-q37r
  • github.com/advisories/GHSA-8559-gwj3-q37r
  • nvd.nist.gov/vuln/detail/CVE-2026-54087

Code Behaviors & Features

Detect and mitigate CVE-2026-54087 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.0.0 before 5.0.13

Fixed versions

  • 5.0.13

Solution

Upgrade to version 5.0.13 or above.

Impact 7.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-434: Unrestricted Upload of File with Dangerous Type
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/easycorp/easyadmin-bundle/CVE-2026-54087.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:19:25 +0000.