CVE-2026-141291: Reflected cross-site scripting in the login and registration error responses
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Postizto a version that resolves this vulnerability.Fixed in 2.26.1
Event History
Frequently Asked Questions
Who must interact with an attacker for exploitation to succeed?
An attacker does not need privileges, but must persuade a member with an active Postiz session to visit a malicious page. That page can submit a cross-site form to the affected endpoint and cause the reflected response to execute on the Postiz API origin.
What access could injected script obtain?
The script runs with the affected member's session on that origin. It can call dashboard routes that the member is permitted to use, exposing data and actions available to that member.
How can teams identify exposed request paths?
Test failed sign-in and registration requests for request-controlled values reflected in the response body, especially the authentication provider name. Responses rendered with an HTML content type and reachable through cross-site form submissions are affected conditions.