{
  "id": "CVE-2025-48877",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-48877",
  "published_at": "2025-06-09T12:36:29.651Z",
  "title": "Discourse vulnerable to auto-executing of third-party code in embedded CodePen iframe",
  "vendor": "discourse",
  "product": "discourse",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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`.",
  "cwe": "CWE-1038",
  "cpes": [
    "cpe:2.3:a:discourse:discourse:*:*:*:*:beta:*:*:*",
    "cpe:2.3:a:discourse:discourse:*:*:*:*:stable:*:*:*",
    "cpe:2.3:a:discourse:discourse:3.5.0:beta1:*:*:beta:*:*:*",
    "cpe:2.3:a:discourse:discourse:3.5.0:beta2:*:*:beta:*:*:*",
    "cpe:2.3:a:discourse:discourse:3.5.0:beta3:*:*:beta:*:*:*",
    "cpe:2.3:a:discourse:discourse:3.5.0:beta4:*:*:beta:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.1,
    "nvd": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "discourse",
        "product": "discourse",
        "ranges": [
          "\u003c 3.4.4",
          "\u003c 3.5.0.beta5",
          "\u003c 3.5.0.beta6-dev"
        ],
        "fixed_in": [
          "3.4.4",
          "3.5.0.beta5",
          "3.5.0.beta6-dev"
        ]
      }
    ],
    "upgrade": [
      "Upgrade discourse to 3.4.4 or 3.5.0.beta5 or 3.5.0.beta6-dev or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/discourse/discourse/security/advisories/GHSA-cm93-6m2m-cjcv"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
