{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4e1cfff53429c49c87d5c457a18ed435520044fc"
            }
          ],
          "repo": "https://github.com/matrix-org/sydent",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "util/emailutils.py in Matrix Sydent before 1.0.2 mishandles registration restrictions that are based on e-mail domain, if the allowed_local_3pids option is enabled. This occurs because of potentially unwanted behavior in Python, in which an email.utils.parseaddr call on user@bad.example.net@good.example.com returns the user@bad.example.net substring.",
  "id": "CVE-2019-11340",
  "modified": "2025-11-19T17:34:36.813533545Z",
  "published": "2019-04-19T14:29:00.417Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/matrix-org/sydent/commit/4e1cfff53429c49c87d5c457a18ed435520044fc"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/matrix-org/sydent/compare/7c002cd...09278fb"
    },
    {
      "type": "ADVISORY",
      "url": "https://matrix.org/blog/2019/04/18/security-update-sydent-1-0-2/"
    },
    {
      "type": "ADVISORY",
      "url": "https://twitter.com/matrixdotorg/status/1118934335963500545"
    },
    {
      "type": "FIX",
      "url": "https://github.com/matrix-org/sydent/commit/4e1cfff53429c49c87d5c457a18ed435520044fc"
    },
    {
      "type": "FIX",
      "url": "https://github.com/matrix-org/sydent/compare/7c002cd...09278fb"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ]
}