Security Resilience

CVE-2025-48877

Discourse ≤ 3.4.4

Published
09 June 2025
Modified
17 June 2026
Patch / advisory
CVSS Score v4 8.1
Click a component to see what it means
Raw vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0043 38th percentile
Risk Priority 44 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-48877 is a high-severity Insecure Automated Optimizations (CWE-1038) vulnerability in Discourse. Its CVSS base score is 8.1 (High).

Operationally, ranked at the 38th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-15 (Development Process, Standards, and Tools) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

Discourse is an open-source discussion platform. Prior to version 3.4.4 of the `stable` branch, version 3.5.0.beta5 of the `beta` branch, and version 3.5.0.beta6-dev of the `tests-passed` branch, Codepen is present in the default `allowed_iframes` site setting, and it can potentially…

more

auto-run arbitrary JS in the iframe scope, which is unintended. This issue is patched in version 3.4.4 of the `stable` branch, version 3.5.0.beta5 of the `beta` branch, and version 3.5.0.beta6-dev of the `tests-passed` branch. As a workaround, the Codepen prefix can be removed from a site's `allowed_iframes`.

CWE(s)

Related Threats

CVEs Like This One

CVE-2026-55424Same product: Discourse Discourse
CVE-2026-53963Same product: Discourse Discourse
CVE-2026-45775Same product: Discourse Discourse
CVE-2026-28282Same product: Discourse Discourse
CVE-2026-33426Same product: Discourse Discourse
CVE-2023-37904Same product: Discourse Discourse
CVE-2023-32301Same product: Discourse Discourse
CVE-2023-23616Same product: Discourse Discourse
CVE-2025-48062Same product: Discourse Discourse
CVE-2026-32143Same product: Discourse Discourse

Affected Assets

discourse
discourse
3.5.0 · ≤ 3.4.4 · ≤ 3.5.0

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation can discover side effects from optimizations that break intended security properties.

Documented development processes and tools can mandate review or disabling of optimizations that risk violating security assumptions.

Security engineering principles can require avoiding or verifying automated optimizations that alter security behavior.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development and acceptance can detect unintended side-effects introduced by automated optimizations.

prevents

Secure coding standards must address risks from compiler or build-tool optimizations that alter intended security behavior.

finds

Change-management processes should evaluate the security impact of enabling or altering automated optimization features.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-1038, a class-level weakness, and none of its children carries one either.

References