CVE-2026-40096: immich: Open Redirect via Shared Album name
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 <meta> 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 <meta property="og:title"> 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-40096?
CVE-2026-40096 is classified as a medium severity open redirect vulnerability.
How do I fix CVE-2026-40096?
To fix CVE-2026-40096, upgrade to Immich version 2.7.3 or later.
What software versions are affected by CVE-2026-40096?
CVE-2026-40096 affects Immich versions prior to 2.7.3.
What is an open redirect vulnerability in the context of CVE-2026-40096?
An open redirect vulnerability allows an attacker to redirect users to untrusted websites by manipulating shared album links.
Which component of Immich is vulnerable in CVE-2026-40096?
The vulnerability in CVE-2026-40096 exists in the shared album functionality's handling of unsanitized album names.