Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-48877

HIGH 8.1EPSS 56%

Discourse vulnerable to auto-executing of third-party code in embedded CodePen iframe

Mitigation

  • Upgrade discourse to 3.5.0.beta6-dev or later.

Who should check

  • Anyone running discourse < 3.4.4; < 3.5.0.beta5; < 3.5.0.beta6-dev

Vulnerability facts

Affected
discourse < 3.4.4; < 3.5.0.beta5; < 3.5.0.beta6-dev
Fixed in
discourse 3.4.4, discourse 3.5.0.beta5, discourse 3.5.0.beta6-dev
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.1 (v4.0, CNA)CVSS: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:UOpen in CVSS calculator
Show all 12 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
  • Exploit maturity: Unreported
EPSS
0.85% chance of exploitation in 30 days (percentile 56, 2026-11-26)
CWE
CWE-1038
Published
Modified

Description

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 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`.

Affected and fixed versions

Package / productAffectedFixedSource
discourse< 3.4.4; < 3.5.0.beta5; < 3.5.0.beta6-dev—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-48877. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-48877.md
Affected: discourse < 3.4.4; < 3.5.0.beta5; < 3.5.0.beta6-dev
Fixed in: discourse 3.4.4, discourse 3.5.0.beta5, discourse 3.5.0.beta6-dev

Steps:
1. Search this machine and project for discourse: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-48877 being exploited?

There is no confirmed exploitation: CVE-2025-48877 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.85% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-48877?

High: CVSS 8.1 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2025-48877?

discourse < 3.4.4; < 3.5.0.beta5; < 3.5.0.beta6-dev.

Is there a fix for CVE-2025-48877?

Yes. Fixed in discourse 3.4.4, discourse 3.5.0.beta5, discourse 3.5.0.beta6-dev. Upgrade discourse to 3.5.0.beta6-dev or later.

How do I check if I'm affected by CVE-2025-48877?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors