{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:futo:immich:*:*:*:*:*:docker:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.7.3"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3254d31cd2967ad878f9bc5fb8b25738c8fd883a"
            }
          ],
          "repo": "https://github.com/immich-app/immich",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-24fq-72x8-v7hm"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-601",
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40096.json"
  },
  "details": "immich is a high performance self-hosted photo and video management solution. Versions prior to 2.7.3 contain an open redirect vulnerability in the shared album functionality, where the album name is inserted unsanitized into a \u003cmeta\u003e tag in api.service.ts. A registered attacker can create a shared album with a crafted name containing 0;url=https://attackersite.com\" http-equiv=\"refresh, which when rendered in the \u003cmeta property=\"og:title\"\u003e tag causes the victim's browser to redirect to an attacker-controlled site upon opening the share link. This facilitates phishing attacks, as the attacker could host a modified version of immich that collects login credentials from victims who believe they need to authenticate to view the shared album. This issue has been fixed in version 2.7.3.",
  "id": "CVE-2026-40096",
  "modified": "2026-08-04T11:31:01.280528945Z",
  "published": "2026-04-14T23:54:17.662Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/immich-app/immich/releases/tag/v2.7.3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40096.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/immich-app/immich/security/advisories/GHSA-24fq-72x8-v7hm"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40096"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "immich: Open Redirect via Shared Album name"
}