CVE-2026-40168 Postiz has Server-Side Request Forgery via Redirect Bypass in /api/public/stream

High 8.2 Published Updated

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.

Sources

Also known as GHSA-34w8-5j2v-h6ww.

Is CVE-2026-40168 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free