Postiz CVE-2026-42556
CRITICALSeverity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Authenticated user can inject (PR:L) but needs victim to open the shared link (UI:R); same-origin script execution changes scope (S:C) yielding high C/I, with no real availability impact (A:N).
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
6DescriptionNVD
Postiz is an AI social media scheduling tool. From version 2.21.6 to before version 2.21.7, any authenticated user who can create a post can store arbitrary HTML in post content by tampering their own save request and send the public preview link /p/<postId>?share=true to another user. The preview page renders that stored HTML with dangerouslySetInnerHTML on the main application origin. This issue has been patched in version 2.21.7.
AnalysisAI
Stored cross-site scripting in Postiz (gitroomhq/postiz-app) versions 2.21.6 through 2.21.6 lets any authenticated user who can create a post inject arbitrary HTML into post content by tampering with their own save request, then weaponize it via the public preview link /p/<postId>?share=true. Because the preview page renders the stored markup with dangerouslySetInnerHTML on the main application origin, a shared link executes attacker JavaScript in a victim's authenticated session context. There is no public exploit identified at time of analysis and EPSS is very low (0.04%), but SSVC rates the technical impact as total; the issue is fixed in 2.21.7.
Technical ContextAI
Postiz is a self-hostable AI-driven social-media scheduling platform (Node/React). The flaw is a classic CWE-79 stored XSS: user-controlled post content is persisted without sanitization and later injected into the DOM through React's dangerouslySetInnerHTML, which deliberately bypasses React's default HTML escaping. The critical amplifier is that the vulnerable render occurs on the /p/<postId> public preview route served from the main application origin rather than a sandboxed domain, so injected script runs with the same-origin privileges of the Postiz app (cookies, localStorage tokens, in-app API access). The affected package is identified in CPE as cpe:2.3:a:gitroomhq:postiz-app.
RemediationAI
Vendor-released patch: upgrade to Postiz 2.21.7, which the vendor flags as an immediate-upgrade security release (https://github.com/gitroomhq/postiz-app/releases/tag/v2.21.7 and advisory GHSA-hhxq-3wg7-4rj8). If you cannot upgrade immediately, apply compensating controls: restrict or disable the public preview feature (the /p/<postId>?share=true share route) so stored content cannot be rendered to other users - trade-off is loss of shareable previews; front the app with a WAF or reverse-proxy rule that strips/escapes HTML in post-save requests and blocks script-bearing preview responses - trade-off is possible false positives on legitimate rich content; and tighten account provisioning so only trusted users can create posts, since exploitation requires an authenticated post-creating account. Adding a strict Content-Security-Policy (disallowing inline script on the app origin) reduces impact of any injected markup, though it may break existing inline UI behavior and is a defense-in-depth measure, not a full fix.
More in Postiz App
View allPrivilege escalation to SUPERADMIN in Postiz (gitroomhq/postiz-app) versions prior to 2.21.8 allows any authenticated us
Arbitrary code execution and privileged token theft affects Postiz (gitroomhq/postiz-app) prior to commit da44801 throug
Arbitrary file read in Postiz (gitroomhq/postiz-app before 2.22.1) lets an unauthenticated remote attacker retrieve any
File upload validation bypass in Postiz social media scheduler (versions before 2.21.6) allows authenticated users to up
Server-side request forgery in Postiz AI social media scheduling tool (versions < 2.21.3) allows unauthenticated remote
Server-side request forgery (SSRF) in Postiz social media scheduling tool versions prior to 2.21.3 allows authenticated
Server-side request forgery in Postiz (gitroomhq postiz-app) versions prior to 2.21.5 allows unauthenticated remote atta
Business-logic authentication bypass in Postiz self-hosted AI social media scheduler (gitroomhq/postiz-app) before 2.21.
DNS rebinding exploits a TOCTOU flaw in Postiz v2.16.6-2.21.6 to bypass all SSRF protections added in v2.21.4-v2.21.6, a
Server-side request forgery (SSRF) in Postiz prior to version 2.21.4 allows authenticated users to create webhooks point
Unauthenticated exploitation of Postiz's `/public/modify-subscription` endpoint allowed any caller in possession of a va
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today