{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "3.31.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "cc7e4e0f7c9b2dc2c7d2dd85579cb78c107224af"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v3.31.0",
                "range": [
                  {
                    "fixed": "c87f20d1293b6e7732afe1b25d07ed79152b75a8"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c87f20d1293b6e7732afe1b25d07ed79152b75a8"
            },
            {
              "fixed": "cc7e4e0f7c9b2dc2c7d2dd85579cb78c107224af"
            }
          ],
          "repo": "https://github.com/mealie-recipes/mealie",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-q8vh-w9gq-3v96"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-116"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145257.json"
  },
  "details": "Mealie before 3.31.0 contains an HTML injection vulnerability that allows authenticated users with GROUP_INVITE permission to inject markup into invitation emails via an unvalidated token. Attackers can supply a token containing a double quote to POST /api/households/invitations/email, breaking the href attribute to send instance-branded phishing links to chosen recipients.",
  "id": "CVE-2026-145257",
  "modified": "2026-12-04T20:45:19.723134534Z",
  "published": "2026-12-04T18:31:14.140Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145257.json"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/mealie-recipes/mealie/blob/v3.30.0/mealie/routes/households/controller_invitations.py#L77"
    },
    {
      "type": "FIX",
      "url": "https://github.com/mealie-recipes/mealie/commit/cc7e4e0f7c9b2dc2c7d2dd85579cb78c107224af"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/mealie-recipes/mealie/releases/tag/v3.31.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/mealie-recipes/mealie/security/advisories/GHSA-q8vh-w9gq-3v96"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-145257"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/mealie-before-3.31.0-html-injection-in-invitation-emails-via-token-field"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Mealie before 3.31.0 HTML Injection in Invitation Emails via Token Field"
}