CVE-2024-8113: Pretix Cross-Site Scripting Vulnerability

HIGH
Advisory Identifier: GHSA-45rp-q25w-4426
CWE-79
Published
Advisory Summary

CVE-2024-8113 is a HIGH cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Pretix libraries in the PyPI ecosystem. The issue involves pretix stored cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 2024.7.1.

CVE-2024-8113 at a Glance

CVE Identifier CVE-2024-8113
GHSA Identifier GHSA-45rp-q25w-4426
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Pretix
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2024-8113

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: 2024.7.1
pip install pretix>=2024.7.1
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-2024-8113, 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 2024.7.1), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. 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

Stored XSS in organizer and event settings of pretix up to 2024.7.0 allows malicious event organizers to inject HTML tags into e-mail previews on settings page. The default Content Security Policy of pretix prevents execution of attacker-provided scripts, making exploitation unlikely. However, combined with a CSP bypass (which is not currently known) the vulnerability could be used to impersonate other organizers or staff users.

CVE-2024-8113 Affected Pretix Versions

1 component(s)
Fixed Versions:
2024.7.1
Product / Package Ecosystem Affected Versions Fixed Version
pretix
PyPI
< 2024.7.1
2024.7.1

References

Frequently Asked Questions

What is CVE-2024-8113?
CVE-2024-8113 is a security vulnerability in Pretix involving pretix Stored Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Pretix versions are affected?
Affected versions include releases prior to 2024.7.1 across affected packages: pretix.
What version fixes CVE-2024-8113?
Upgrading to 2024.7.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pretix affected?
Yes, pretix is affected in releases prior to 2024.7.1. Upgrade your dependency to 2024.7.1 or later.
What CWE is associated with CVE-2024-8113?
CVE-2024-8113 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check PyPI dependencies for CVE-2024-8113?
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-45rp-q25w-4426",
  "modified" : "2025-01-21T18:12:39Z",
  "published" : "2024-08-23T15:30:34Z",
  "aliases" : [ "CVE-2024-8113" ],
  "summary" : "pretix Stored Cross-site Scripting vulnerability",
  "details" : "Stored XSS in organizer and event settings of pretix up to 2024.7.0 allows malicious event organizers to inject HTML tags into e-mail previews on settings page. The default Content Security Policy of pretix prevents execution of attacker-provided scripts, making exploitation unlikely. However, combined with a CSP bypass (which is not currently known) the vulnerability could be used to impersonate other organizers or staff users.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:U/V:X/RE:L/U:Green"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pretix"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2024.7.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8113"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pretix/pretix/commit/0f44a2ad4e170882dbe6b9d95dba6c36e4e181cf"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pretix/pretix"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pretix/PYSEC-2024-180.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://pretix.eu/about/en/blog/20240823-release-2024-7-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-23T18:51:02Z",
    "nvd_published_at" : "2024-08-23T15:15:17Z"
  }
}