{"id":"CVE-2026-40487","published":"2026-04-18T01:19:06Z","modified":"2026-04-20T15:25:40Z","title":"Postiz Has Unrestricted File Upload via MIME Type Spoofing that Leads to Stored XSS","vendor":"gitroomhq","product":"postiz-app","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.9,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00228,"percentile":0.13882,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"references":[{"url":"https://github.com/gitroomhq/postiz-app/security/advisories/GHSA-44wg-r34q-hvfx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gitroomhq/postiz-app/releases/tag/v2.21.6","tags":["x_refsource_MISC"]}],"priority":{"score":14.0,"factors":[{"name":"EPSS percentile","points":2.78},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.23}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-04-15","earliestUrl":"https://github.com/Astaruf/CVE-2026-40487","repos":[{"name":"Astaruf/CVE-2026-40487","url":"https://github.com/Astaruf/CVE-2026-40487","stars":3,"created":"2026-04-15"}]},"first":{"date":"2026-04-15","source":"PoC-in-GitHub","url":"https://github.com/Astaruf/CVE-2026-40487"},"provenance":"source"},"vendorSlug":"gitroomhq","affectedVersions":[{"vendor":"gitroomhq","product":"postiz-app","versions":["< 2.21.6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-20T15:25:37.579242Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-23634","exploited":false,"provenance":"source"}}