Skip to main content
← All vulnerabilities
CVE-2025-66488

Discourse allows script execution in uploaded HTML/XML files on S3

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.5.4, 2025.11.2, 2025.12.1, 2026.1.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • discourse discourse

    fixed in 3.5.4; From 2025.11.0-latest · fixed in 2025.11.2; From 2025.12.0-latest · fixed in 2025.12.1; From 2026.1.0-latest · fixed in 2026.1.0

References 1

GitHub · discourse/discourse