CVE-2026-40168 Postiz has Server-Side Request Forgery via Redirect Bypass in /api/public/stream
An attacker can exploit a redirect bypass in the stream endpoint to force the server to access internal resources, potentially exposing sensitive data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-40168?
CVE-2026-40168 is a high-severity server-side request forgery vulnerability in gitroomhq postiz-app, published on 10 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Postiz is an AI social media scheduling tool. Prior to 2.21.5, the /api/public/stream endpoint is vulnerable to SSRF. Although the application validates the initially supplied URL and blocks direct private/internal hosts, it does not re-validate the final destination after HTTP redirects. As a result, an attacker can supply a public HTTPS URL that passes validation and then redirects the server-side request to an internal resource.
Weakness: CWE-918
Which versions are affected by CVE-2026-40168?
It affects 1 product.
Products include Gitroom Postiz.
How do I fix CVE-2026-40168?
No fix has been published for CVE-2026-40168 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2026-40168 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40168 exists.
Other vulnerabilities in gitroomhq postiz-app
- CVE-2026-42298 Postiz: Arbitrary Code Execution and Token Exfiltration in pr-docker-build.yml via untrusted Dockerfile.dev
- CVE-2026-42556 Postiz stored XSS in public preview page
- CVE-2026-40487 Postiz Has Unrestricted File Upload via MIME Type Spoofing that Leads to Stored XSS
- CVE-2026-34577 Postiz: Unauthenticated Full-Read SSRF via /public/stream Endpoint with Trivially Bypassable Extension Check
- CVE-2026-34576 Postiz: SSRF in upload-from-url endpoint allows fetching internal resources and cloud metadata
Sources
Also known as GHSA-34w8-5j2v-h6ww.