{"id":"CVE-2021-21333","published":"2021-03-26T20:00:19Z","modified":"2024-08-03T18:09:15Z","title":"HTML injection in email and account expiry notifications","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 notification emails sent for notifications for missed messages or for an expiring account are subject to HTML injection. In the case of the notification for missed messages, this could allow an attacker to insert forged content into the email. The account expiry feature is not enabled by default and the HTML injection is not controllable by an attacker. This is fixed in version 1.27.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01354,"percentile":0.72296,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"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://github.com/matrix-org/synapse/security/advisories/GHSA-c5f8-35qr-q4fm","tags":["x_refsource_CONFIRM"]},{"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":14.46},{"name":"CVSS severity","points":4.27}]},"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-c5f8-35qr-q4fm","PYSEC-2021-134"],"provenance":"source"}],"summary":{"text":"A flaw in the Synapse Matrix homeserver (matrix-org, component matrix-synapse, the Python reference implementation) lets HTML injection occur in the notification emails it sends for missed messages and expiring accounts, with the account-expiry path not enabled by default. An attacker who can get a crafted message into a missed-message notification could insert forged content into the email, but only under the conditions that the victim has to interact with the email and the issue affects versions before 1.27.0, while the account-expiry injection cannot be controlled by an attacker.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:51Z"},"euvd":{"id":"EUVD-2021-0126","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"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-21333","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},{"cve":"CVE-2021-21393","published":"2021-04-12","fixed":"1.28.0","kev":false},{"cve":"CVE-2021-21394","published":"2021-04-12","fixed":"1.28.0","kev":false}],"package":"PyPI:matrix-synapse"}}