CVE-2026-40487

CRITICAL CVSS 3.1: 9.0 EPSS 0.23%
Updated Oct 27, 2026
Gitroom
Parameter Value
CVSS 9.0 (CRITICAL)
Affected Versions before 2.21.6
Fixed In 2.21.6
Type CWE-79 (Cross-Site Scripting (XSS)), CWE-345 (Insufficient Verification of Data), CWE-434 (Unrestricted File Upload)
Vendor Gitroom
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Gitroom Postiz
cpe:2.3:a:gitroom:postiz:*:*:*:*:*:*:*:*
— 2.21.6