CVE-2025-13742: Pretix Pretix Has Email Content Injection Vulnerability

LOW
Advisory Identifier: GHSA-2mm6-624x-fqrr
CWE-116
Published
Advisory Summary

CVE-2025-13742 is a LOW pretix has email content injection vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Pretix libraries in the PyPI ecosystem. The issue involves pretix has email content injection through maliciously formatted names. Remediation is available by upgrading affected packages to version 2025.7.3, 2025.8.2, 2025.9.2.

CVE-2025-13742 at a Glance

CVE Identifier CVE-2025-13742
GHSA Identifier GHSA-2mm6-624x-fqrr
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-116: Improper Encoding or Escaping of Output
Affected Product Pretix
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2025-13742

To remediate this vulnerability, upgrade all affected Pretix dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pretix fixed: 2025.7.3
pip install pretix>=2025.7.3
pretix fixed: 2025.8.2
pip install pretix>=2025.8.2
pretix fixed: 2025.9.2
pip install pretix>=2025.9.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show pretix

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-13742, inspect your installed packages using pip:

pip show pretix

Analyze the terminal output to locate any version of Pretix in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2025.7.3), your application is affected.

Note: The pip show pretix command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In Pretix, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-13742 Affected Pretix Versions

3 component(s)
Fixed Versions:
2025.7.32025.8.22025.9.2
Product / Package Ecosystem Affected Versions Fixed Version
pretix
PyPI
≥ 1.0.0
< 2025.7.3
2025.7.3
pretix
PyPI
≥ 2025.8.0
< 2025.8.2
2025.8.2
pretix
PyPI
≥ 2025.9.0
< 2025.9.2
2025.9.2

References

Frequently Asked Questions

What is CVE-2025-13742?
CVE-2025-13742 is a security vulnerability in Pretix involving pretix has Email Content Injection Through Maliciously Formatted Names under CWE-116: Improper Encoding or Escaping of Output.
Which Pretix versions are affected?
Affected versions include releases prior to 2025.7.3, 2025.8.2, 2025.9.2 across affected packages: pretix.
What version fixes CVE-2025-13742?
Upgrading to 2025.7.3, 2025.8.2, 2025.9.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pretix affected?
Yes, pretix is affected in releases prior to 2025.7.3, 2025.8.2, 2025.9.2. Upgrade your dependency to 2025.7.3, 2025.8.2, 2025.9.2 or later.
What CWE is associated with CVE-2025-13742?
CVE-2025-13742 is classified under CWE-116: Improper Encoding or Escaping of Output (The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.).
How can I check PyPI dependencies for CVE-2025-13742?
Run the dependency tree command: 'pip show pretix'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2mm6-624x-fqrr",
  "modified" : "2026-06-09T16:12:34Z",
  "published" : "2025-11-27T12:30:28Z",
  "aliases" : [ "CVE-2025-13742" ],
  "summary" : "pretix has Email Content Injection Through Maliciously Formatted Names",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pretix"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "2025.7.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pretix"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2025.8.0"
      }, {
        "fixed" : "2025.8.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pretix"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2025.9.0"
      }, {
        "fixed" : "2025.9.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-13742"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pretix/pretix"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pretix/PYSEC-2025-154.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://pretix.eu/about/en/blog/20251126-release-2025-9-1"
  }, {
    "type" : "WEB",
    "url" : "https://pretix.eu/about/en/security"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20251129201933/https://pretix.eu/about/en/blog/20251127-release-2025-9-2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-116" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-09T16:12:33Z",
    "nvd_published_at" : "2025-11-27T11:15:47Z"
  }
}