CVE-2026-40096: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in immich-app immich
immich versions prior to 2. 7. 3 contain a cross-site scripting (XSS) vulnerability due to improper input neutralization in the shared album feature. An attacker can craft an album name that injects a malicious meta refresh tag, causing victim browsers to redirect to attacker-controlled sites when opening the shared album link. This can facilitate phishing attacks by misleading victims into providing credentials to fake login pages. The issue is fixed in immich version 2. 7. 3.
AI Analysis
Technical Summary
The vulnerability in immich-app immich (CVE-2026-40096) is an improper neutralization of input during web page generation (CWE-79) combined with an open redirect (CWE-601). Specifically, the album name is inserted unsanitized into a <meta> tag in the api.service.ts file. A registered attacker can create a shared album with a specially crafted name containing a meta refresh directive that triggers a browser redirect to an attacker-controlled URL. This occurs in the <meta property="og:title"> tag, enabling phishing attacks by redirecting victims to malicious sites. The vulnerability affects versions prior to 2.7.3 and has been fixed in version 2.7.3.
Potential Impact
Successful exploitation allows an attacker to redirect users who open a shared album link to a malicious website. This can be used to conduct phishing attacks by hosting fake login pages that steal user credentials. The vulnerability requires the attacker to be a registered user who can create shared albums. The CVSS 4.0 base score is 5.1 (medium severity), reflecting network attack vector, low complexity, no privileges required beyond registration, and user interaction needed.
Mitigation Recommendations
Upgrade immich to version 2.7.3 or later, where this vulnerability has been fixed. No other mitigation is required as the issue is resolved in the official patch.
CVE-2026-40096: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in immich-app immich
Description
immich versions prior to 2. 7. 3 contain a cross-site scripting (XSS) vulnerability due to improper input neutralization in the shared album feature. An attacker can craft an album name that injects a malicious meta refresh tag, causing victim browsers to redirect to attacker-controlled sites when opening the shared album link. This can facilitate phishing attacks by misleading victims into providing credentials to fake login pages. The issue is fixed in immich version 2. 7. 3.
CVSS v4.0
Score 5.1medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in immich-app immich (CVE-2026-40096) is an improper neutralization of input during web page generation (CWE-79) combined with an open redirect (CWE-601). Specifically, the album name is inserted unsanitized into a <meta> tag in the api.service.ts file. A registered attacker can create a shared album with a specially crafted name containing a meta refresh directive that triggers a browser redirect to an attacker-controlled URL. This occurs in the <meta property="og:title"> tag, enabling phishing attacks by redirecting victims to malicious sites. The vulnerability affects versions prior to 2.7.3 and has been fixed in version 2.7.3.
Potential Impact
Successful exploitation allows an attacker to redirect users who open a shared album link to a malicious website. This can be used to conduct phishing attacks by hosting fake login pages that steal user credentials. The vulnerability requires the attacker to be a registered user who can create shared albums. The CVSS 4.0 base score is 5.1 (medium severity), reflecting network attack vector, low complexity, no privileges required beyond registration, and user interaction needed.
Mitigation Recommendations
Upgrade immich to version 2.7.3 or later, where this vulnerability has been fixed. No other mitigation is required as the issue is resolved in the official patch.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-09T01:41:38.536Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ded8f482d89c981f22edd7
Added to database: 4/15/2026, 12:16:52 AM
Last enriched: 4/22/2026, 6:44:09 AM
Last updated: 5/29/2026, 4:13:35 PM
Views: 85
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.