CVE-2026-40487
HIGHPostiz Has Unrestricted File Upload via MIME Type Spoofing that Leads to Stored XSS
Title source: cnaExploitation Summary
EIP tracks 3 public exploits for CVE-2026-40487. PoCs published by adminlove520, Astaruf, 0xBlackash.
AI-analyzed exploit summary This repository contains a functional exploit for CVE-2026-40487, which involves a MIME-type spoofing vulnerability in Postiz leading to arbitrary file upload and stored XSS. The exploit chain allows an attacker to upload a malicious SVG file with a spoofed Content-Type header, leading to session hijacking and account takeover.
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.
Exploits (3)
This repository contains a functional exploit for CVE-2026-40487, which involves a MIME-type spoofing vulnerability in Postiz leading to arbitrary file upload and stored XSS. The exploit chain allows an attacker to upload a malicious SVG file with a spoofed Content-Type header, leading to session hijacking and account takeover.
This repository contains a functional exploit for CVE-2026-40487, which leverages MIME-type spoofing to upload malicious SVG files, leading to stored XSS and account takeover in Postiz <= 2.21.5. The PoC includes detailed attack modes for exfiltration, privilege escalation, sabotage, and backdoor creation.
The repository contains only a minimal README with the CVE identifier and no functional exploit code or technical details. It appears to be a placeholder or stub.
References (2)
Scores
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L