# GHSA-P4X5-Q7X2-FWGV: Reflected cross-site scripting in the login and registration error responses

- Database: GitHub
- Severity: CVSS 8.2 (High)
- Published: 2026-12-01
- Modified: 2026-12-01

## Tracked as

- [CVE-2026-141291](https://cve.now/CVE-2026-141291.md): Postiz App reflected XSS in login and registration error responses

## Description

## Description

When a sign-in or registration request failed, Postiz sent the error message back as the response body with the default HTML content type. One of those messages included the requested authentication provider name exactly as it was sent, and both endpoints accepted cross-site form submissions, so a page on any site could post a provider name containing markup and have the browser render the answer as a document on the API origin.

Other errors returned by the same endpoints can also quote request data, so the issue was not limited to the provider name. The script runs with the member's session on that origin and can call any dashboard route the member may use.

## Timeline

- 2026-10-23 17:45 UTC - Anthropic has disclosed a thorough report of this vulnerability including a working PoC to Postiz
- 2026-11-17 22:45 UTC - Postiz has confirmed the vulnerability and is working on a fix
- 2026-12-01 13:45 UTC - Postiz has released the fix in v2.26.1.

## Workarounds

- At the reverse proxy, refuse POST /auth/login and POST /auth/register (under /api/ in the shipped container) unless the Content-Type is application/json. The web app sends JSON; a cross-site form cannot.
- At the reverse proxy, add X-Content-Type-Options: nosniff and Content-Security-Policy: default-src 'none' to responses of the API paths.

## Mitigations

- Upgrade to Postiz v2.26.1 or later.

## Known exploits

- Exploitation was demonstrated against an unmodified backend build at commit 3a7d28b7ad96: a page on another origin submitted a form to the login endpoint, the signed-in member's browser ran the returned script, and the organization API key reached the attacker's server.

## Vulnerable configurations

- The default configuration is affected; no account and no setting is needed.
- In the shipped container the API is served under /api on the application's own origin, so the script runs on the application origin. With a separate API host it runs on that host, which still receives the session cookie.

## Impact

- A web page on any origin, opened by a member who is signed in to Postiz, runs script on the origin that serves the Postiz API and can call any dashboard route with that member's rights.
- For an ADMIN or SUPERADMIN, which every self-registered organization owner is, the script can read the organization's API key, which keeps working for the public API after the visit until it is rotated.

## References

- [Postiz](https://github.com/gitroomhq/postiz-app)
- [45f4757](https://github.com/gitroomhq/postiz-app/commit/45f4757071afc38f497dbf271c56d54f580dc07b)
- [v2.26.1](https://github.com/gitroomhq/postiz-app/releases/tag/v2.26.1)
- [GAdvisory](https://gadvisory.org/advisories/PSA-2026-X4710P)

## Credits

- Anthropic, PBC (finder)

<!-- gadvisory-ref:PSA-2026-X4710P -->

## References

- https://github.com/gitroomhq/postiz-app/security/advisories/GHSA-p4x5-q7x2-fwgv

Page: https://cve.now/GHSA-P4X5-Q7X2-FWGV

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
