pretix Reflected XSS (CVE-2026-57533): What to Do
TL;DR: CVE-2026-57533 is a reflected cross-site scripting (XSS) vulnerability in the pretix redirect page, and the fix is an upgrade to 2026.5.2, 2026.4.4, 2026.3.4 or a later release. Because the page has what pretix calls a strong Content-Security-Policy (CSP), pretix rates the vulnerability low and names phishing as the main risk. Customers of pretix Hosted need to do nothing. Haxset found the vulnerability and reported it.
Key points
- The CVE record scores the vulnerability 2.1 (low) under CVSS 4.0. Its vector rates attack complexity as high and requires low privileges. The victim only has to open the page.1
- The redirect page rejects any link that the pretix installation has not signed itself, so editing a link cannot change its destination host name.2
- Haxset's AI SAST, a module of the Haxset Engine, found the vulnerability, and pretix credits Haxset for the report.
What is CVE-2026-57533, and who is affected?
CVE-2026-57533 lets an attacker inject HTML into the redirect page of pretix, open-source software for selling event tickets. The redirect page is the page pretix shows before a link takes a visitor to another website. The CVE record lists every version before 2026.3.4 as affected, along with 2026.4.0 to 2026.4.3 and 2026.5.0 to 2026.5.1. It classifies the vulnerability as CWE-80, basic XSS.1
The vulnerability was found by Haxset's AI SAST. In its release post of June 25, 2026, pretix writes: "This issue has been reported to us by Haxset."3
How does this reflected XSS work, and why does the CSP limit it?
In a reflected XSS, a value from the request comes back in the response page without escaping, so markup in that value becomes part of the page. On the pretix redirect page, the value is the destination host name of the link. The template wrapped the host name in <strong> tags and marked the result as safe, so Django's automatic escaping skipped it. The fix adds a wrap_in template filter that builds the tag with Django's format_html, which escapes the host name.2
before: {% blocktrans trimmed with host="<strong>"|add:hostname|add:"</strong>"|safe %}
after: {% blocktrans trimmed with host=hostname|wrap_in:'strong' %}
Because the redirect page accepts only signed links, the attacker needs a signed link whose host name carries markup. Neither the release post nor the CVE record says how an attacker obtains one. The record's ratings of low privileges and high attack complexity are the only hint either source gives.1
A CSP is a response header that tells the browser which scripts, styles and images a page may load. A policy that runs only scripts the site itself provides stops an injected <script> tag or an onerror attribute from running. That removes the usual XSS outcome: the attacker's JavaScript running in the visitor's browser. Injected text and links still appear, and visitors see them under the ticket shop's own domain. In pretix's words: "Since this page has a Content-Security-Policy, this can mainly be used for phishing purposes."3
Escaping in the page is the first defense, and the CSP is a second one whose strength can change. In the same release post, pretix rates CVE-2026-13225, a stored XSS on the ticket confirmation page, medium because that page's policy "might be weakened by tracking plugins". The release post does not say whether plugins change the redirect page's policy. The template fix removes the vulnerability whatever the policy allows.3
How do I fix CVE-2026-57533?
Upgrade every self-hosted installation to 2026.5.2, 2026.4.4, 2026.3.4 or a later release. The release post names no workaround. It tells anyone on a version older than 2026.3 to "upgrade to a recent version now", and it recommends that you "always run the latest version of pretix". For customers of pretix Hosted, it says the vulnerabilities "are already fixed for you".3
The upgrade fixes more than this vulnerability. The same releases fix three other pretix vulnerabilities, including CVE-2026-57532, a stored XSS in the PDF layout editor that pretix rates high. The release post also lists fixed versions for several plugins, such as pretix-pages 1.6.4, so check each plugin you run against that list.3
The release post explains why pretix has published more security releases recently:
"This trend is driven by the widespread adoption of AI-assisted tools, which researchers are using to scan pretix (and all other open source software) for vulnerabilities."3
Follow the pretix blog or its RSS feed to see each security release on the day it ships.
How Haxset can help
Haxset's AI SAST, a module of the Haxset Engine, reads your source code for vulnerabilities such as reflected XSS, where request data reaches a page without escaping. Haxset does not keep the prompts its AI models process and does not train models on them. It stores only scan metadata and scan results. To scan your own applications, contact us.
Related research
References
-
CVE Program, CVE-2026-57533, CVE record, published June 25, 2026. ↩ ↩2 ↩3
-
pretix, fix commit e2661f3 for CVE-2026-57533, GitHub, June 2026, and the redirect view in pretix 2026.5.1. ↩ ↩2
-
Raphael Michel, pretix, Security release 2026.5.2 of pretix and multiple plugins, pretix blog, June 25, 2026. ↩ ↩2 ↩3 ↩4 ↩5 ↩6
Interested in how this research applies to your organization?
Get in touch
