CVE-2026-54087
Published:July 14, 2026
Updated:August 02, 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.
Affected Packages
https://github.com/EasyCorp/EasyAdminBundle.git (GITHUB):
Affected version(s) >=v5.0.0 <v5.0.13Fix Suggestion:
Update to version v5.0.13easycorp/easyadmin-bundle (PHP):
Affected version(s) >=v5.0.0 <v5.0.13Fix Suggestion:
Update to version v5.0.13Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.6
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE