Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-20290
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 03:38 UTC · Revision 1
Source evidence
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.
osv:CVE-2017-20290
Complete source record
{
"id": "8b05f8bd7bfe9d52a26f44988bcd742ebdb91cce71f50d7e761c22d8757f4a1e",
"url": "https://osv.dev/vulnerability/CVE-2017-20290",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-20290",
"summary": "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.",
"evidence": "osv:CVE-2017-20290",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2017-20290",
"aliases": [
"CVE-2017-20290"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/discourse/discourse",
"type": "GIT",
"events": [
{
"introduced": "eaeae0ac3101b43297a7bb3cab58b66b74bb2714"
},
{
"fixed": "6f923d5964519372262576893835cf4ebb26e73e"
},
{
"fixed": "6e37f09b19"
},
{
"fixed": "a6f2533d38"
}
],
"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"
}
]
}
}
],
"versions": [
"v1.9.0.beta12",
"v1.9.0.beta11",
"v1.9.0.beta10",
"v1.9.0.beta9",
"v1.9.0.beta8",
"v1.9.0.beta7",
"v1.9.0.beta6",
"v1.9.0.beta5",
"v1.9.0.beta4",
"v1.9.0.beta3",
"v1.9.0.beta2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-20290.json"
}
}
],
"modified": "2026-10-24T02:45:18.004000577Z",
"provider": "osv",
"references": [
"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/discourse-xss.yaml",
"https://www.vulncheck.com/advisories/discourse-1.9.0-beta13-reflected-xss-via-email-unsubscribed",
"https://github.com/discourse/discourse/commit/6e37f09b19",
"https://github.com/discourse/discourse/commit/a6f2533d38"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2017-20290",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 428163,
"published_at": "2026-10-22T11:17:03.22+00:00"
}