{
  "id": "CVE-2025-48062",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-48062",
  "published_at": "2025-06-09T12:33:57.87Z",
  "title": "Discourse vulnerable to HTML injection when inviting to topic via email",
  "vendor": "discourse",
  "product": "discourse",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N"
  },
  "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, certain invites via email may result in HTML injection in the email body if the topic title includes HTML. This includes inviting someone (without an account) to a PM and inviting someone (without an account) to a topic with a custom message. 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. This can be worked around if the relevant templates are overridden without `{topic_title}`.",
  "cwe": "CWE-116",
  "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": 7.1,
    "nvd": 6.1
  },
  "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-x8mp-chx3-6x2p"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
