Skip to content

CVE-2025-66488 Discourse allows script execution in uploaded HTML/XML files on S3

MediumCVSS 6.1 EPSS 0.32%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

Discourse is an open source discussion platform. A vulnerability present in versions prior to 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0 affects anyone who uses S3 for uploads. While scripts may be executed, they will only be run in the context of the S3/CDN domain, with no site credentials. Versions 3.5.4, 2025.11.2, 2025.12.1, and 2026.1.0 fix the issue. As a workaround, disallow html or xml files for uploads in authorized_extensions. For existing html xml uploads, site owners can consider deleting them.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
discourse < 3.5.4; = 2025.12.0; = 2026.1.0; = < 3.5.4 +4 more 3.5.4, 2025.11.2 Fixed

Affected products

ProductAffected versionsFixed in
discourse = < 3.5.4 No fix listed
discourse = >= 2025.11.0-latest, < 2025.11.2 No fix listed
discourse = >= 2025.12.0-latest, < 2025.12.1 No fix listed
discourse = >= 2026.1.0-latest, < 2026.1.0 No fix listed
discourse < 3.5.4 3.5.4
discourse >= 2025.11.0, < 2025.11.2 2025.11.2
discourse = 2025.12.0 No fix listed
discourse = 2026.1.0 No fix listed

References