{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.9.0.beta2"
                  },
                  {
                    "fixed": "1.9.0.beta13"
                  }
                ],
                "source": "DESCRIPTION"
              },
              {
                "range": [
                  {
                    "fixed": "6e37f09b19"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "a6f2533d38"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "eaeae0ac3101b43297a7bb3cab58b66b74bb2714"
            },
            {
              "fixed": "6f923d5964519372262576893835cf4ebb26e73e"
            },
            {
              "fixed": "6e37f09b19"
            },
            {
              "fixed": "a6f2533d38"
            }
          ],
          "repo": "https://github.com/discourse/discourse",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {},
  "details": "Discourse 1.9.0.beta2 before 1.9.0.beta13 contains a reflected cross-site scripting vulnerability that allows unauthenticated attackers to inject scripts through the email parameter of /email/unsubscribed. Attackers can craft GET requests with SVG onload payloads, which unsubscribed.html.erb renders unescaped via html_safe, executing JavaScript in victims' browsers. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-19.",
  "id": "CVE-2017-20290",
  "modified": "2026-11-07T02:30:50.557296425Z",
  "published": "2026-10-22T11:17:03.220Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/discourse-xss.yaml"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/discourse-1.9.0-beta13-reflected-xss-via-email-unsubscribed"
    },
    {
      "type": "FIX",
      "url": "https://github.com/discourse/discourse/commit/6e37f09b19"
    },
    {
      "type": "FIX",
      "url": "https://github.com/discourse/discourse/commit/a6f2533d38"
    }
  ],
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/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",
      "type": "CVSS_V4"
    }
  ]
}