{"id":"CVE-2021-21332","published":"2021-03-26T19:55:17Z","modified":"2024-08-03T18:09:15Z","title":"Cross-site scripting (XSS) vulnerability in the password reset endpoint","vendor":"matrix-org","product":"synapse","tier":"tail","description":{"text":"Synapse is a Matrix reference homeserver written in python (pypi package matrix-synapse). Matrix is an ecosystem for open federated Instant Messaging and VoIP. In Synapse before version 1.27.0, the password reset endpoint served via Synapse was vulnerable to cross-site scripting (XSS) attacks. The impact depends on the configuration of the domain that Synapse is deployed on, but may allow access to cookies and other browser data, CSRF vulnerabilities, and access to other resources served on the same domain or parent domains. This is fixed in version 1.27.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01221,"percentile":0.69433,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/matrix-org/synapse/security/advisories/GHSA-246w-56m2-5899","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/synapse/releases/tag/v1.27.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/synapse/pull/9200","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/synapse/commit/e54746bdf7d5c831eabe4dcea76a7626f1de73df","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TNNAJOZNMVMXM6AS7RFFKB4QLUJ4IFEY/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":13.89},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"synapse","versions":["< 1.27.0"]}],"affected":[{"ecosystem":"PyPI","package":"matrix-synapse","vulnerableRanges":["<1.27.0"],"patched":["1.27.0"],"from":["GHSA-246w-56m2-5899","PYSEC-2021-133"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting (XSS) vulnerability in the password reset endpoint served by Synapse, the Python reference homeserver for the Matrix federated messaging ecosystem (package matrix-synapse), in versions before 1.27.0. Exploitation requires network access and a user to interact with a crafted page (user interaction), with no authentication needed; successful exploitation can expose cookies and other browser data and enable CSRF or access to other resources on the same or parent domains, depending on how the domain is configured.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:25Z"},"euvd":{"id":"EUVD-2021-0125","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-26257","published":"2020-12-09","fixed":"1.23.1","kev":false},{"cve":"CVE-2021-21273","published":"2021-02-26","fixed":"1.25.0","kev":false},{"cve":"CVE-2021-21274","published":"2021-02-26","fixed":"1.25.0","kev":false,"link":{"from":"CVE-2021-21274","to":"CVE-2021-21332","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:matrix-synapse","fromFixed":"1.25.0","toFixed":"1.27.0","daysApart":28}]}},{"cve":"CVE-2021-21332","published":"2021-03-26","fixed":"1.27.0","kev":false},{"cve":"CVE-2021-21333","published":"2021-03-26","fixed":"1.27.0","kev":false},{"cve":"CVE-2021-21392","published":"2021-04-12","fixed":"1.28.0","kev":false,"link":{"from":"CVE-2021-21332","to":"CVE-2021-21392","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:matrix-synapse","fromFixed":"1.27.0","toFixed":"1.28.0rc1","daysApart":17}]}},{"cve":"CVE-2021-21393","published":"2021-04-12","fixed":"1.28.0","kev":false}],"package":"PyPI:matrix-synapse"}}