CVE-2026-141291 PUBLISHED

Reflected cross-site scripting in the login and registration error responses

Assigner: postiz
Reserved: 01.12.2026 Published: 01.12.2026 Updated: 01.12.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
CVSS Score: 8.2

Product Status

Vendor GitroomHQ
Product postiz-app
Versions Default: unaffected
  • affected from 2.20.0 to 2.26.1 (excl.)

Affected Configurations

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.

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.

Workarounds

At the reverse proxy, add X-Content-Type-Options: nosniff and Content-Security-Policy: default-src 'none' to responses of the API paths.

Solutions

Upgrade to Postiz v2.26.1 or later.

Credits

  • Anthropic, PBC finder
  • Enno Gelhaus coordinator
  • Enno Gelhaus remediation developer

References

Problem Types

  • CWE-79 CWE

Impacts

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