Immich
CVE-2026-40096
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconRegister as Immich user
-
DeliveryCreate album with redirect payload in name
-
ExploitShare album link with victim
-
InstallVictim clicks link
-
C2Browser renders malicious meta tag
-
ExecuteRedirect to phishing site
-
ImpactHarvest credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three specific conditions: (1) the attacker must be a registered user of the target Immich instance with permission to create shared albums, (2) the victim must receive and actively click the crafted shared album link, and (3) the victim's browser must respect the injected meta refresh tag and redirect (which all modern browsers do by default). Default configurations of Immich allow any registered user to create and share albums, making this vulnerability exploitable without special setup. However, Immich instances with authentication disabled or shared album creation disabled are not affected, as are victims using browsers configured to block meta refresh redirects. |
| Impact | This vulnerability presents moderate real-world risk despite the low CVSS score of 5.1 and exceptionally low EPSS score of 0.04%. The CVSS vector correctly identifies mitigating factors: authentication is required (PR:L), and user interaction is necessary (UI:P), limiting the attack scope to registered users who must click a crafted share link. However, the practical impact is significant because (1) shared album links in photo management platforms are frequently clicked by non-technical users trusting the sender, (2) phishing success rates are typically high when the landing page impersonates a legitimate service, and (3) credential theft from a self-hosted photo platform could expose private media and potentially provide access to the underlying system. The very low EPSS percentile (13th) suggests minimal current exploitation, but this likely reflects the vulnerability's recent disclosure rather than genuine absence of exploitation risk. For Immich deployments handling sensitive family photos or business media, the attack chain requires only a single registered user and victim interaction, making this a practical priority despite CVSS and EPSS metrics suggesting otherwise. Organizations should treat this as a moderate-priority patch based on deployment sensitivity and user base composition, not on CVSS/EPSS scores alone. |
| Exploit ScenarioDerived | A registered Immich user creates a shared album with the crafted name '0;url=https://attacker.com/fake-login" http-equiv="refresh'. When a victim receives the share link and opens it in their browser, the malicious name is rendered in the meta tag, triggering an automatic redirect to the attacker's phishing site. The attacker's site displays an Immich-like login form, and if the victim enters credentials, the attacker captures them for account compromise. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 17, 2026
Open redirect vulnerability in Immich prior to version 2.7.3 allows authenticated attackers to craft malicious shared album names that inject unsanitized HTML into Open Graph meta tags, redirecting victims' browsers to attacker-controlled sites when they open the share link. This enables phishing attacks where victims can be directed to credential-harvesting sites that impersonate the Immich login interface, exploiting user trust in the shared album feature.
RemediationAI
Upgrade Immich to version 2.7.3 or later immediately, which includes HTML encoding of the album name parameter before insertion into meta tags. Organizations unable to upgrade immediately should implement HTML input validation and output encoding at the application layer, or deploy a Web Application Firewall (WAF) rule that blocks album names containing meta refresh injection patterns (specifically, strings matching '0;url=' or 'http-equiv='). Additionally, disable the Open Graph meta tag generation for shared albums until patching is completed, though this removes social media preview functionality. The primary mitigation is patching, as no vendor-endorsed workarounds exist beyond these stopgap measures. See GitHub advisory at https://github.com/immich-app/immich/security/advisories/GHSA-24fq-72x8-v7hm for patch details.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in the shared album functionality of Immich's api.service.ts file, where the album name parameter is directly inserted into an HTML <meta property="og:title"> tag without sanitization or encoding. Attackers exploit HTML attribute injection by crafting album names containing the sequence '0;url=https://attackersite.com" http-equiv="refresh', which breaks out of the og:title attribute and injects a meta refresh tag that forces browser redirection. This is a variant of XSS (CWE-79: Improper Neutralization of Input During Web Page Generation) that achieves redirection rather than script execution. The vulnerability affects the self-hosted photo/video management platform Immich across all versions prior to 2.7.3.
Know when Immich gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)GitHub Advisory
Album ownership takeover in immich before 3.0.3 allows a user with shared-album editor access to escalate to full owner
Immich versions prior to 2.5.0 contain an improper access control flaw that allows any authenticated API key to escalate
Reflected cross-site scripting in Immich (commits 4ffa26c9 through pre-4eb1003) allows a single-click account takeover o
Authenticated partners in Immich through 3.3.1 can read metadata from assets stored in another user's Locked Folder - in
Remote code execution in Immich before 3.2.4 lets any authenticated non-admin user with upload permission run arbitrary
Locked asset visibility bypass in Immich through 3.1.0 exposes private photo and video assets to unauthorized viewers vi
Improper authorization in Immich's Shared Link Preview Handler (server/src/utils/access.ts, function checkSharedLinkAcce
Unauthenticated filesystem path injection in Immich's machine-learning service (vulnerable through 3.0.3, fixed in 3.3.0
Immich prior to version 2.6.0 discloses shared album passwords in cleartext within URL query parameters during authentic
Stored Cross-Site Scripting in Immich photo management platform versions prior to 2.7.0 enables authenticated attackers
Immich before 3.0.0 leaks the GPS coordinates and asset identifiers of a sharer's archived photos and videos to view-onl
Immich before 3.2.0 lets an authenticated regular user attach another user's asset to a shared link they legitimately ow
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB