Statamic: Missing file upload validation on frontend forms allows uploading disallowed file types
Published 6 Aug 2026 · Updated 6 Aug 2026
Affected packages
- Affected
- <5.74.3
- Fixed in
- 5.74.3
composer require statamic/cms:^5.74.3- Affected
- >=6.0.0 <6.24.2
- Fixed in
- 6.24.2
composer require statamic/cms:^6.24.2Details
Impact
Public frontend forms did not enforce the file upload restrictions that the Control Panel enforces, so an unauthenticated visitor could upload file types an administrator had intended to disallow through a form's assets or files field. For assets fields, files could be stored on a public, web-accessible disk. Statamic's global upload allowlist still applied, so executable types such
as .php and .html remained blocked.
Patches
This has been fixed in 5.74.3 and 6.24.2.
Is GHSA-qhr7-v3xp-vw9m in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected statamic/cms, and gives you the command that fixes it.
References
- Linkgithub.com/statamic/cms/security/advisories/GHSA-qhr7-v3xp-vw9m
- Linkgithub.com/statamic/cms/pull/14958
- Linkgithub.com/statamic/cms/commit/8be7b6c961536d3173ec4e0965d17b1cf820b7ae
- Packagegithub.com/statamic/cms
- Linkgithub.com/statamic/cms/releases/tag/v5.74.3
- Linkgithub.com/statamic/cms/releases/tag/v6.24.2
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.