9

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

Analyzed
Published 18-04-2026Last modified 20-04-2026

Vulnerability summary

CVE-2026-40487 is a critical (CVSS 9.0) Cross-site Scripting vulnerability in gitroom postiz. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 16.2% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.0/10
010
Critical · v3.1 (NVD)
EPSS score
0.26%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 18-04-2026
    PublishedVulnerability first disclosed.
  2. 20-04-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

2 scores · 2 sources · 1 version

EPSS trend

Probability

0.26%

Chance of exploitation in the next 30 days

Percentile

16%

Versus all other CVEs

30-day change

Increase +0.03 pp

From 0.22% on 23-09-2026

23-09-202623-10-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Postiz App

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Gitroom1 product
Gitroomhq1 product

2 vendors · 2 products

References

2 links