CVE-2026-40487
published high CVSS 3.1 · 8.9Postiz Has Unrestricted File Upload via MIME Type Spoofing that Leads to Stored XSS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gitroomhq | — | postiz-app< 2.21.6 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.9 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gitroomhq | postiz-app | < 2.21.6 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-345 CWE-345: Insufficient Verification of Data Authenticity
- CWE-434 CWE-434: Unrestricted Upload of File with Dangerous Type
References
2Provider assertions
2GitHub_M · cna
Postiz Has Unrestricted File Upload via MIME Type Spoofing that Leads to Stored XSS
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 80e47f829a8f84e12a9ea81fa3c370adb85627fb5bf150ea9a181282b12f39e4
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record