{
  "id": "CVE-2025-48954",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-48954",
  "published_at": "2025-06-25T14:02:46.515Z",
  "title": "Discourse vulnerable to XSS via user-provided query parameter in oauth failure flow",
  "vendor": "discourse",
  "product": "discourse",
  "cvss": {
    "score": 8.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-08-05T19:56:00Z",
    "first_seen_at": null,
    "days_after_publication": 41.2,
    "source": "nuclei",
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-48954.yaml"
  },
  "poc_repo_count": 0,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Discourse is an open-source discussion platform. Versions prior to 3.5.0.beta6 are vulnerable to cross-site scripting when the content security policy isn't enabled when using social logins. Version 3.5.0.beta6 patches the issue. As a workaround, have the content security policy enabled.",
  "cwe": "CWE-79",
  "cpes": [
    "cpe:2.3:a:discourse:discourse:*:*:*:*:beta:*:*:*",
    "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:*:*:*",
    "cpe:2.3:a:discourse:discourse:3.5.0:beta5:*:*:beta:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.1,
    "nvd": 6.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "discourse",
        "product": "discourse",
        "ranges": [
          "\u003c 3.5.0.beta6"
        ],
        "fixed_in": [
          "3.5.0.beta6"
        ]
      }
    ],
    "upgrade": [
      "Upgrade discourse to 3.5.0.beta6 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/discourse/discourse/security/advisories/GHSA-26p5-mjjh-wfcf"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-48954.yaml",
      "source": "nuclei",
      "title": "nuclei template: Discourse OAuth Social Login - Cross-site Scripting",
      "published_at": "2025-08-05T19:56:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
