# CVE-2026-40487: Postiz Has Unrestricted File Upload via MIME Type Spoofing that Leads to Stored XSS

- Severity: High 8.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-18T01:19:06.588Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-79, CWE-345, CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- gitroomhq postiz-app: < 2.21.6
- gitroom postiz: before 2.21.6

## Every score

- GitHub_M: CVSS:3.1 8.9 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L`
- NVD: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/gitroomhq/postiz-app/security/advisories/GHSA-44wg-r34q-hvfx> (exploit, vendor-advisory)
- <https://github.com/gitroomhq/postiz-app/releases/tag/v2.21.6> (product, release-notes)

## Sources

- CVE List: [CVE-2026-40487](https://www.cve.org/CVERecord?id=CVE-2026-40487), CVE Terms of Use, modified 2026-04-20
- NVD: [CVE-2026-40487](https://nvd.nist.gov/vuln/detail/CVE-2026-40487), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40487 · Whole record: https://cve.day/CVE-2026-40487.json · Rebuilt by cve.day 2026-11-25T22:59:18.990Z
