CVE-2026-53662
JSON

9.6critical

immich: One-click account takeover via XSS in login page continue redirect

Severity
9.6critical CVSS:3.1 by GitHub_M
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

immich is a high performance self-hosted photo and video management solution. From commit 4ffa26c9 until 4eb1003, a reflected cross-site scripting (XSS) vulnerability on the /auth/login page allows an attacker to fully compromise any authenticated user's account with a single link click. The continue query parameter is read from the URL and passed to SvelteKit's redirect() without any scheme or origin validation, allowing attacker-controlled JavaScript to execute inside Immich's origin. The payload then uses the victim's existing session to mint an all-permission API key on their account, leading to persistent account takeover. This vulnerability is fixed in commit 4eb1003.

Affected

Product or packageVersionsReported by
immich-app immich>= main@4ffa26c9, < main@4eb1003CVE List

Classification

CWE-79CWE-601

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

immich is a high performance self-hosted photo and video management solution. From commit 4ffa26c9 until 4eb1003, a reflected cross-site scripting (XSS) vulnerability on the /auth/login page allows an attacker to fully compromise any authenticated user's account with a single link click. The continue query parameter is read from the URL and passed to SvelteKit's redirect() without any scheme or origin validation, allowing attacker-controlled JavaScript to execute inside Immich's origin. The payload then uses the victim's existing session to mint an all-permission API key on their account, leading to persistent account takeover. This vulnerability is fixed in commit 4eb1003.

NVD (es)

immich es una solución de alto rendimiento autoalojada para gestión de fotos y videos. Desde el commit 4ffa26c9 hasta el 4eb1003, una vulnerabilidad de cross-site scripting (XSS) reflejado en la página /auth/login permite a un atacante comprometer completamente la cuenta de cualquier usuario autenticado con un solo clic en un enlace. El parámetro de consulta continue se lee de la URL y se pasa a redirect() de SvelteKit sin ninguna validación de esquema u origen, permitiendo que JavaScript controlado por el atacante se ejecute dentro del origen de Immich. La carga útil luego utiliza la sesión existente de la víctima para generar una clave API con todos los permisos en su cuenta, lo que lleva a una toma de control persistente de la cuenta. Esta vulnerabilidad está corregida en el commit 4eb1003.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-53662 changed 2026-06-23CVE Terms of Use
NVDCVE-2026-53662 changed 2026-10-25Public domain