CVE-2026-40487 in Gitroom Postiz
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 deriv...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, requires user interaction, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Gitroom | Postiz | < 2.21.6 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-40487 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-270974-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| Published | 2026-04-18 |
| Last modified | 2026-10-26 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-79: Cross-Site Scripting (XSS)
Attacker injects malicious scripts into web pages viewed by other users, executing in the victim's browser context.
CWE-345: CWE-345
CWE-434: Unrestricted Upload of File with Dangerous Type
Application allows file uploads without validating type, enabling upload of executable code or web shells.
Related attack patterns (CAPEC)
CAPEC-85 AJAX Footprinting via CWE-79
CAPEC-142 DNS Cache Poisoning via CWE-345
CAPEC-209 XSS Using MIME Type Mismatch via CWE-79
CAPEC-218 Spoofing of UDDI/ebXML Messages via CWE-345
CAPEC-385 Transaction or Event Tampering via Application API Manipulation via CWE-345
Show all 19
CAPEC-387 Navigation Remapping To Propagate Malicious Content via CWE-345
CAPEC-388 Application API Button Hijacking via CWE-345
CAPEC-588 DOM-Based XSS via CWE-79
CAPEC-591 Reflected XSS via CWE-79
CAPEC-592 Stored XSS via CWE-79
CAPEC-665 Exploitation of Thunderbolt Protection Flaws via CWE-345
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-434
CAPEC-63 Cross-Site Scripting (XSS) via CWE-79
CAPEC-111 JSON Hijacking (aka JavaScript Hijacking) via CWE-345
CAPEC-141 Cache Poisoning via CWE-345
CAPEC-384 Application API Message Manipulation via Man-in-the-Middle via CWE-345
CAPEC-386 Application API Navigation Remapping via CWE-345
CAPEC-701 Browser in the Middle (BiTM) via CWE-345
CAPEC-148 Content Spoofing via CWE-345
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A file upload validation bypass vulnerability in Postiz prior to version 2.21.6 allows authenticated users to upload arbitrary HTML, SVG, or other executable file types by spoofing the Content-Type header. These files are served with the correct Content-Type, potentially leading to stored cross-site scripting (XSS) attacks.
The vulnerability arises from the lack of proper validation of the file type and content during the upload process. An attacker can exploit this by uploading a malicious file with a spoofed Content-Type header, which is then served by the server with the correct MIME type based on the file extension.
Questions
What is CVE-2026-40487?
A file upload validation bypass vulnerability in Postiz prior to version 2.21.6 allows authenticated users to upload arbitrary HTML, SVG, or other executable file types by spoofing the Content-Type header. These files are served with the correct Content-Type, potentially leading to stored cross-site scripting (XSS) attacks.
What is the CVSS score for CVE-2026-40487?
CVE-2026-40487 has CVSS 9.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H. EPSS: 0.3%.
Is CVE-2026-40487 actively exploited?
No confirmed active exploitation of CVE-2026-40487 as of 2026-11-03.
How do I remediate CVE-2026-40487?
Priority: IMMEDIATE.
What systems are affected by CVE-2026-40487?
CVE-2026-40487 affects Gitroom Postiz.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Gitroom","product":"Postiz","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-26.