# CVE-2026-40168: Gitroom Postiz SSRF via redirect bypass in stream endpoint

Source: https://junglewise.ai/threats/cve-2026-40168-gitroom-postiz-ssrf-via-redirect-bypass-in-stream-endpoint  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-10. Updated: 2026-05-10  
License: CC BY 4.0 with a link back

CVE-2026-40168 · Severity: high · CVSS 8.2 · Published 2026-04-10

Postiz, an AI-powered social media scheduling tool, contains a security flaw that allows attackers to trick the server into making unauthorized requests to internal systems. While the software attempts to block access to private networks, it fails to check the final destination if a web request is redirected. This could allow an attacker to scan internal corporate networks, interact with private databases or services, and potentially access sensitive cloud configuration data.

Technologies: [Gitroom Postiz](https://junglewise.ai/threats/technologies/postiz). Vendors: [Gitroom](https://junglewise.ai/threats/vendors/gitroom).

## Quick answers

**Is CVE-2026-40168 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-40168 being exploited in the wild.

**How severe is CVE-2026-40168?** High severity, with a CVSS score of 8.2, published 10 April 2026.

**Which products and versions are affected?** Gitroom Postiz < 2.21.5.

**Is there a fix for CVE-2026-40168?** A patch was published on 2026-04-09: Version 2.21.5 released. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-40168 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-40168?** Check whether you run Gitroom Postiz. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A Server-Side Request Forgery (SSRF) vulnerability exists in the `/api/public/stream` endpoint of Postiz due to insufficient validation of HTTP redirects. While the application performs an initial check to block internal or private IP addresses, it does not perform subsequent validation if the initial public URL redirects the request. An unauthenticated attacker can exploit this by providing a URL they control that redirects to internal resources, such as cloud metadata services (169.254.169.254) or internal APIs. This can lead to internal network scanning, interaction with unauthenticated internal services, and potential exposure of cloud credentials. The vulnerability is patched in version 2.21.5.

## Affected products

- Gitroom Postiz < 2.21.5

## Timeline

- 2026-04-03: disclosed: Postiz received the initial report.
- 2026-04-09: patched: Version 2.21.5 released.
- 2026-04-10: advisory: CVE-2026-40168 published.

## References

- [https://github.com/gitroomhq/postiz-app/commit/30e8b777098157362769226d1b46d83ad616cb06](https://github.com/gitroomhq/postiz-app/commit/30e8b777098157362769226d1b46d83ad616cb06)
- [https://github.com/gitroomhq/postiz-app/releases/tag/v2.21.5](https://github.com/gitroomhq/postiz-app/releases/tag/v2.21.5)
- [https://github.com/gitroomhq/postiz-app/security/advisories/GHSA-34w8-5j2v-h6ww](https://github.com/gitroomhq/postiz-app/security/advisories/GHSA-34w8-5j2v-h6ww)

## Related threats

- [Gitroomhq Postiz authorization bypass in Nowpayments webhook](https://junglewise.ai/threats/cve-2026-48799-gitroomhq-postiz-authorization-bypass-in-nowpayments-webhook)
- [Postiz billing enforcement bypass in modify-subscription endpoint](https://junglewise.ai/threats/cve-2026-48783-postiz-billing-enforcement-bypass-in-modify-subscription-endpoint)
- [Postiz privilege escalation via JWT forgery in Skool integration](https://junglewise.ai/threats/cve-2026-48781-postiz-privilege-escalation-via-jwt-forgery-in-skool-integration)
- [Gitroom Postiz stored XSS in public preview page](https://junglewise.ai/threats/cve-2026-42556-gitroom-postiz-stored-xss-in-public-preview-page)
- [Postiz SSRF via DNS Rebinding TOCTOU in URL Validation](https://junglewise.ai/threats/cve-2026-42346-postiz-ssrf-via-dns-rebinding-toctou-in-url-validation)
