Limited HTML injection in emails
pretix
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| pretix PyPI |
|
|
pretix
| Product | Affected | Fixed in |
|---|---|---|
| pretix PyPI |
|
|
Emails sent by pretix can utilize placeholders that will be filled with customer data. For example, when {name} is used in an email template, it will be replaced with the buyer's name for the final email. If the name of the attendee contained HTML or Markdown formatting, this was rendered as HTML in the resulting email. This way, a user could inject links or other formatted text through a maliciously formatted name. Since pretix applies a strict allow list approach to allowed HTML tags, this could not be abused for XSS or similarly dangerous attack chains. However, it can be used to manipulate emails in a way that makes user-provided content appear in a trustworthy and credible way, which can be abused for phishing.
From the CVE record · rami.io
pretix email templates can render HTML or Markdown from an attendee’s name when it is inserted through a placeholder. A user who supplies a maliciously formatted name can inject links or other formatted text into a resulting email, potentially making phishing content appear credible. The described issue cannot be used for XSS because pretix restricts allowed HTML tags.
Teams running the PyPI pretix package in the listed affected ranges—>=1.0.0 <2025.7.3, >=2025.8.0 <2025.8.2, or >=2025.9.0 <2025.9.2—should check their installations.