Skip to main content

Immich CVE-2026-40096

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-14 GitHub_M
5.1
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Register as Immich user
  2. Delivery
    Create album with redirect payload in name
  3. Exploit
    Share album link with victim
  4. Install
    Victim clicks link
  5. C2
    Browser renders malicious meta tag
  6. Execute
    Redirect to phishing site
  7. Impact
    Harvest 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

GitHub Advisory PRIMARY 5.1 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Apr 17, 2026 - 15:52 NVD
5.1 (MEDIUM)
CVE Published
Apr 14, 2026 - 23:54 nvd
MEDIUM 5.1

DescriptionGitHub 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

EPSS Score
0.0%
Top 87% exploitable
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:immich-app:immich:*:*:*:*:*:*:*:*

More in Immich

View all
CVE-2026-59258 HIGH POC
7.2 Jul 15

Album ownership takeover in immich before 3.0.3 allows a user with shared-album editor access to escalate to full owner

CVE-2026-23896 HIGH POC
7.2 Jan 29

Immich versions prior to 2.5.0 contain an improper access control flaw that allows any authenticated API key to escalate

CVE-2026-53662 CRITICAL
9.6 Jun 23

Reflected cross-site scripting in Immich (commits 4ffa26c9 through pre-4eb1003) allows a single-click account takeover o

CVE-2026-108165 MEDIUM POC
5.3 Oct 10

Authenticated partners in Immich through 3.3.1 can read metadata from assets stored in another user's Locked Folder - in

CVE-2026-105764 HIGH
7.7 Oct 05

Remote code execution in Immich before 3.2.4 lets any authenticated non-admin user with upload permission run arbitrary

CVE-2026-82272 HIGH
7.1 Aug 28

Locked asset visibility bypass in Immich through 3.1.0 exposes private photo and video assets to unauthorized viewers vi

CVE-2026-103532 MEDIUM
6.9 Oct 01

Improper authorization in Immich's Shared Link Preview Handler (server/src/utils/access.ts, function checkSharedLinkAcce

CVE-2026-119328 MEDIUM
6.5 Oct 30

Unauthenticated filesystem path injection in Immich's machine-learning service (vulnerable through 3.0.3, fixed in 3.3.0

CVE-2026-25118 MEDIUM
6.3 Apr 03

Immich prior to version 2.6.0 discloses shared album passwords in cleartext within URL query parameters during authentic

CVE-2026-35455 MEDIUM
5.4 Apr 08

Stored Cross-Site Scripting in Immich photo management platform versions prior to 2.7.0 enables authenticated attackers

CVE-2026-119329 MEDIUM
4.3 Oct 30

Immich before 3.0.0 leaks the GPS coordinates and asset identifiers of a sharer's archived photos and videos to view-onl

CVE-2026-119330 LOW
3.5 Oct 30

Immich before 3.2.0 lets an authenticated regular user attach another user's asset to a shared link they legitimately ow

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy