[SECURITY] Prevent reading of any local files in reportlab (CVE-2026-57535)

This commit is contained in:
Raphael Michel
2026-06-25 16:19:38 +02:00
committed by Raphael Michel
parent 3953d57c2e
commit 257bb2e4b7
3 changed files with 26 additions and 7 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class PretixHelpersConfig(AppConfig):
from .monkeypatching import monkeypatch_all_at_ready
monkeypatch_all_at_ready()
# Ensure reportlab does not make any calls to the internet
# Ensure reportlab does not make any calls to the internet or the local disk
from reportlab import rl_config
rl_config.trustedHosts = []
rl_config.trustedSchemes = ['data']