Skip to main content
← All vulnerabilities
CVE-2026-40487

Postiz Has Unrestricted File Upload via MIME Type Spoofing that Leads to Stored XSS

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.21.6
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

Postiz is an AI social media scheduling tool. Prior to version 2.21.6, a file upload validation bypass allows any authenticated user to upload arbitrary HTML, SVG, or other executable file types to the server by spoofing the `Content-Type` header. The uploaded files are then served by nginx with a Content-Type derived from their original extension (`text/html`, `image/svg+xml`), enabling Stored Cross-Site Scripting (XSS) in the context of the application's origin. This can lead to session riding, account takeover, and full compromise of other users' accounts. Version 2.21.6 contains a fix.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • gitroomhq postiz-app

    fixed in 2.21.6

References 3

GitHub · gitroomhq/postiz-app

GitHub · Astaruf/CVE-2026-40487