{"id":"CVE-2017-20290","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.","modified":"2026-11-07T02:45:09.594438225Z","published":"2026-10-22T11:17:03.220Z","database_specific":{},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/discourse/discourse","events":[{"introduced":"eaeae0ac3101b43297a7bb3cab58b66b74bb2714"},{"fixed":"6f923d5964519372262576893835cf4ebb26e73e"},{"fixed":"6e37f09b19"},{"fixed":"a6f2533d38"}],"database_specific":{"extracted_events":[{"source":"DESCRIPTION","range":[{"introduced":"1.9.0.beta2"},{"fixed":"1.9.0.beta13"}]},{"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"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","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"}]}