From 53370723df05193938ce3c2d55a8e12f2a87b17b Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Fri, 30 Oct 2026 20:41:25 +0100 Subject: fix(core): replace Huey pickle serialization with JSON Prevent broker-controlled task and result payloads from deserializing arbitrary Python objects by using a restricted JSON serializer with an explicit type allowlist. Fail closed on serializer overrides and document broker isolation and migration requirements for existing pickle-backed deployments. --- webmentions_ssg/forms/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webmentions_ssg/forms') diff --git a/webmentions_ssg/forms/validators.py b/webmentions_ssg/forms/validators.py index e8f33eb..2ce2b5b 100644 --- a/webmentions_ssg/forms/validators.py +++ b/webmentions_ssg/forms/validators.py @@ -88,7 +88,7 @@ class AllowedHostname: """ try: hostname = urlsplit(field.data).hostname - except (ValueError, TypeError): + except ValueError, TypeError: hostname = None if hostname is not None and hostname in current_app.config["ALLOWED_HOSTNAMES"]: return -- cgit v1.3.1