CVE-2025-13742
Limited HTML injection in emails
Also known as GHSA-2mm6-624x-fqrr, PYSEC-2025-154
Mitigation
- Upgrade pretix to one of 2025.7.3, 2025.8.2, 2025.9.2, 2025.7.2 (or later in the same release line).
Who should check
- Projects that depend on PyPI package pretix (>= 1.0.0, < 2025.7.3)
- Anyone running pretix >= 1.0.0, < 2025.7.0; >= 2025.7.0, < 2025.8.0; >= 2025.8.0, < 2025.9.0; >= 2025.9.0, < 2025.10.0
Vulnerability facts
- Affected
- pretix >= 1.0.0, < 2025.7.3
- Fixed in
- 2025.7.3, 2025.8.2, 2025.9.2, 2025.7.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 2.4 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:L/VA:L/SC:N/SI:L/SA:L/E:UOpen in CVSS calculator
Show all 12 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: Low
- Confidentiality impact on other systems: None
- Integrity impact on other systems: Low
- Availability impact on other systems: Low
- Exploit maturity: Unreported
- EPSS
- 0.34% chance of exploitation in 30 days (percentile 20, 2026-11-26)
- CWE
- CWE-116
- Modified
Description
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-13742. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-13742.md Affected: pretix >= 1.0.0, < 2025.7.3 Fixed in: 2025.7.3, 2025.8.2, 2025.9.2, 2025.7.2 Steps: 1. Search this machine and project for pretix (PyPI), pretix: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- https://github.com/pretix/pretix
- https://github.com/pypa/advisory-database/tree/main/vulns/pretix/PYSEC-2025-154.yaml
- https://pretix.eu/about/en/blog/20251126-release-2025-9-1
- https://pretix.eu/about/en/security
- https://web.archive.org/web/20251129201933/https://pretix.eu/about/en/blog/20251127-release-2025-9-2
FAQ
Is CVE-2025-13742 being exploited?
There is no confirmed exploitation: CVE-2025-13742 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-13742?
Low: CVSS 2.4 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2025-13742?
pretix >= 1.0.0, < 2025.7.3.
Is there a fix for CVE-2025-13742?
Yes. Fixed in 2025.7.3, 2025.8.2, 2025.9.2, 2025.7.2. Upgrade pretix to one of 2025.7.3, 2025.8.2, 2025.9.2, 2025.7.2 (or later in the same release line).
How do I check if I'm affected by CVE-2025-13742?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.