# CVE-2025-43856: immich allows account hijacking through oauth2

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.70% (percentile 49, 2026-11-26)
- **CWE:** CWE-303
- **Published:** 2025-07-11T17:10:52.423Z
- **Modified:** 2026-06-17T09:24:39.243Z

## Who should check

- Anyone running immich-app immich \< 1.132.0

## Description

immich is a high performance self-hosted photo and video management solution. Prior to 1.132.0, immich is vulnerable to account hijacking through oauth2, because the state parameter is not being checked. The oauth2 state parameter is similar to a csrf token, so when the user starts the login flow this unpredictable token is generated and somehow saved in the browser session and passed to the identity provider, which will return the state parameter when redirecting the user back to immich. Before the user is logged in that parameter needs to be verified to make sure the login was actively initiated by the user in this browser session. On it's own, this wouldn't be too bad, but when immich uses the /user-settings page as a redirect\_uri, it will automatically link the accounts if the user was already logged in. This means that if someone has an immich instance with a public oauth provider (like google), an attacker can - for example - embed a hidden iframe in a webpage or even just send the victim a forged oauth login url with a code that logs the victim into the attackers oauth account and redirects back to immich and links the accounts. After this, the attacker can log into the victims account using their own oauth credentials. This vulnerability is fixed in 1.132.0.

## Affected and fixed versions

- immich-app immich: \< 1.132.0 (cvelist)

## Mitigation

- Upgrade immich to 1.132.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-43856. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-43856.md
Affected: immich-app immich < 1.132.0
Fixed in: immich-app immich 1.132.0

Steps:
1. Search this machine and project for immich-app immich: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-43856 being exploited?

There is no confirmed exploitation: CVE-2025-43856 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-43856?

High: CVSS 7.3 (v4.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-43856?

immich-app immich \< 1.132.0.

### Is there a fix for CVE-2025-43856?

Yes. Fixed in immich-app immich 1.132.0. Upgrade immich to 1.132.0 or later.

### How do I check if I'm affected by CVE-2025-43856?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/immich-app/immich/security/advisories/GHSA-3832-6r8h-9cfm>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-43856>

HTML: <https://flawdb.com/CVE-2025-43856> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-43856>
