CVE-2025-66488
JSON

4.6medium

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

Severity
4.6medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
BIT-DISCOURSE-2025-66488GHSA-68jp-3934-62rx

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.

Affected

Product or packageVersionsReported by
discourse discourse< 3.5.4, >= 2025.11.0-latest, < 2025.11.2, >= 2025.12.0-latest, < 2025.12.1, >= 2026.1.0-latest, < 2026.1.0, before 3.5.4, from 2025.11.0 before 2025.11.2, 2025.12.0, 2026.1.0CVE List, NVD
discourse (Bitnami)before 3.5.4, from 2025.11.0 before 2025.11.2, from 2025.12.0 before 2025.12.1, from 2026.1.0 before 2026.1.0Bitnami Vulnerability Database

All scores

GitHub_M4.6medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-116

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Discourse es una plataforma de discusión de código abierto. Una vulnerabilidad presente en versiones anteriores a 3.5.4, 2025.11.2, 2025.12.1 y 2026.1.0 afecta a cualquiera que use S3 para cargas. Aunque se pueden ejecutar los scripts, solo se hará en el contexto del dominio S3/CDN, sin credenciales del sitio. Las versiones 3.5.4, 2025.11.2, 2025.12.1 y 2026.1.0 solucionan el problema. Como solución alternativa, se recomienda no permitir archivos html o xml para cargas en authorized_extensions. Para las cargas existentes de html xml, los propietarios del sitio pueden considerar eliminarlas.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-66488 changed 2026-01-28CVE Terms of Use
NVDCVE-2025-66488 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-DISCOURSE-2025-66488 changed 2026-09-08Apache-2.0