Skip to content
HighVulnerability

CVE-2026-40487: Postiz file upload validation bypass allows stored cross-site scripting

Identifier
CVE-2026-40487
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.

Summary

Postiz, an AI social media scheduling tool, has a file upload validation bypass in versions prior to 2.21.6. Any authenticated user can spoof the Content-Type header to upload HTML, SVG or other executable files, which nginx then serves with a Content-Type derived from the original extension. This enables stored XSS in the application's origin, with session riding and account takeover of other users possible.

Mitigation

Version 2.21.6 contains a fix.