> ## Content Index
> Fetch the complete content index at: https://sudosecurity.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# Immich Had Fourteen Advisories and One Bug It Fixed Three Times
- URL: https://sudosecurity.org/immich-2026-security-sharing-model/
- Published: 2026-11-28T05:40:00.000Z
- Updated: 2026-11-28T05:40:00.000Z
- Description: Immich's 2026 security record runs to fourteen advisories, and they cluster hard: the sharing features, the OAuth plumbing, and one login redirect parameter that took three separate fixes across eighty-three days. Plus the 3.0 migration traps still waiting for anyone who hasn't jumped yet.
- Author: Santhdium
- Tags: Self Host Saturday, Immich, Self Hosting, CVE, Server Security, Privacy, Vulnerabilities, Docker, Cybersecurity

Of everything in a homelab, photos are the thing you cannot re-acquire. A media library can be re-ripped. A password vault can be rebuilt from a paper backup and a bad afternoon. Nextcloud is mostly documents that exist somewhere else too. The photos are the only data on the box that's truly one-of-one, and the reason people move off Google Photos is specifically so that nobody else is looking at them.

So Immich's security year is worth reading carefully, and the thing that struck me going through it isn't the count — fourteen published advisories dated 2026 — but where they landed. I went through every one and sorted them by which part of the system they were in:

| Area                                            | Count |
| ----------------------------------------------- | ----- |
| Sharing: albums, shared links, archive download | 5     |
| Login redirects                                 | 3     |
| OAuth and OIDC plumbing                         | 2     |
| Access control on user data                     | 2     |
| Handling uploaded content                       | 2     |

Ten of fourteen are in sharing, redirects, or OAuth. Two are in the part that actually receives and processes your photographs. Which is to say: the bugs are overwhelmingly in the features that exist so *other people* can see your pictures.

By severity it comes out at one Critical, four High, seven Moderate and two Low. And five of the fourteen were published on a single day, 6 July, which is what an internal audit sweep looks like when it lands.

This is week four of Self Hosting Saturday. [Week three was Jellyfin](https://sudosecurity.org/jellyfin-2026-security-version-12/), where the lesson was that a multi-user service's threat model is its own users. Immich is the same lesson arriving from a different direction — not the accounts you handed out, but the links and integrations you set up so you wouldn't have to.

## What to Run

**3.3.6** is current stable, released 4 November 2026\. Run that.

**3.4.0-rc.3** also exists, from 6 November, and it is a release candidate. Immich started doing public RCs with 3.0 and you can opt into them in Admin settings under Version check. There's some nice work in rc.3 — mobile passkeys, keyboard shortcuts on the person page — and none of it's worth running a prerelease over your only copy of your children's photographs. Hold for stable.

If you are still on 2.x, you have a migration ahead of you rather than an upgrade, and the second half of this piece is about that.

## The Bug That Needed Three Goes

Here's the pattern that made me want to write this up.

| Published | Advisory            | Severity     | What                                                                               |
| --------- | ------------------- | ------------ | ---------------------------------------------------------------------------------- |
| 1 Jun     | GHSA-8244-8vpr-vp9c | **Critical** | One-click account takeover via XSS in the login page continue redirect             |
| 6 Jul     | GHSA-qp2h-w794-2vhf | Moderate     | **Incomplete fix** for the login continue redirect — slash-backslash open redirect |
| 23 Aug    | GHSA-h5w4-vjv4-9r5q | Low          | Incorrect sanitization of the continue URL on the /maintenance endpoint            |

One parameter. Three advisories. Eighty-three days from the first to the third, with thirty-five days between the critical and the admission that its fix was incomplete.

I want to be clear about what this is and isn't. It isn't incompetence — the second advisory exists *because the project went back and checked its own fix*, which is the behaviour you want, and which plenty of projects skip. The reporter on the second and third is `bo0tzz`, an Immich maintainer, which means this is largely the team auditing itself and publishing what it found. That's a good sign, not a bad one.

What it is, is a very clean demonstration of why redirect validation is one of the more awkward problems in web security and why "we fixed the open redirect" should never be read as "redirects are now safe." The first fix addressed the XSS. The second found that slash-backslash confusion got around it — browsers and URL parsers disagree about whether `\` is a path separator, so a validator and a browser can read the same string differently. The third found that the same parameter existed on a different endpoint that nobody had thought to check, because `/maintenance` isn't where you look for a login bug.

That third one's the lesson that generalises. When you find a bug in how a parameter is handled, the fix isn't fixing that parameter. It's finding every other place that parameter is read.

And this is the part that made me stop being critical, because Immich did the thing almost nobody does. On **24 August**, the day after that third advisory, they committed `6f6f2362`: "chore: lint for unguarded redirect URL reading." It makes reading a navigation-target query parameter a build error unless you pass it through an origin check first:

```javascript
const ROUTE_CONTINUE = "CallExpression[callee.object.name='Route'][callee.property.name='continue']";
const NAVIGATION_PARAM_READ = [
  "CallExpression[callee.property.name='get']",
  ":matches([arguments.0.value='continue'], [arguments.0.value='previousRoute'],",
  " [arguments.0.property.name='PREVIOUS_ROUTE'])",
].join('');

```

```javascript
      // navigation-target query params must be origin-checked at the read site, not at the goto/redirect sink
      'no-restricted-syntax': [
        'error',
        {
          selector: `${NAVIGATION_PARAM_READ}:not(${ROUTE_CONTINUE} > ${NAVIGATION_PARAM_READ})`,
          message: 'Pass this navigation-target query param through Route.continue() to reject cross-origin values.',
        },
      ],

```

Read that comment, because it is the whole thing in one line: **origin-checked at the read site, not at the redirect sink.** Checking at the sink is what produced three advisories, because there is one read per feature and a sink wherever somebody calls `goto`. Checking at the read makes the unsafe version unwriteable rather than merely discouraged.

And the function it funnels everything through has a test file that reads like a list of the year's advisories:

```javascript
    it('should return fallback for absolute URLs on a different origin', () => {
      expect(Route.continue('https://malicious.site/evil', '/fallback')).toBe('/fallback');
    });

```

```javascript
    it('should block javascript: URLs', () => {
      expect(Route.continue('javascript:alert(1)', '/fallback')).toBe('/fallback');
    });

```

Cross-origin absolutes, which was the July open redirect. `javascript:` URLs, which was the June account takeover. Null, relative, and same-origin absolute all covered alongside them. Each of the three bugs is now a test that fails if someone reintroduces it, and the lint rule means you cannot reach the unsafe path to begin with.

Three advisories for one parameter is not a good look in isolation. Three advisories followed by a lint rule and a test suite that encodes all three is a project that learned the right lesson from its own bad quarter, which is rarer and worth more than never having the quarter.

---

> If you're enjoying what you've read so far, we recommend [Zero-Trust Access for Homelabbers: Teleport vs. Tailscale vs. WireGuard vs. Cloudflare Tunnel](https://sudosecurity.org/zero-trust-access-for-homelabbers/) as your next read.

---

## The Album Editor Who Could Delete You

`CVE-2026-77439` (GHSA-c9mf-h82r-8p4j) is the one to actually care about if you share albums with anyone.

Published vector and score: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, 8.8 High. I ran it through the formula to check:

```
impact         = 5.8731
exploitability = 2.8353
base           = roundup(8.7084) = 8.8

```

Correct as published. Immich's scores check out, which is worth saying because [last week's Jellyfin CVEs](https://sudosecurity.org/jellyfin-2026-security-version-12/) had two third-party annotations that didn't.

The bug: a user with the **Editor** role on an album could reach unguarded API endpoints that let them demote the album's owner, promote themselves to Owner, and then remove the original owner from the album entirely. Affected everything before 3.0.3.

The current code has the guard the advisory implies was missing, and it is explicit rather than clever. From `album.service.ts`:

```typescript
    const album = await this.findOrFail(id, userId);
    const owner = album.albumUsers[0];

    if (owner.user.id === userId) {
      throw new BadRequestException('User is owner');
    }

```

You cannot change the owner's role, full stop. And `removeUser` carries a second, independent check for the other half of the chain:

```typescript
    if (
      exists.role === AlbumUserRole.Owner &&
      album.albumUsers.filter(({ role }) => role === AlbumUserRole.Owner).length === 1
    ) {
      throw new BadRequestException('Cannot remove the last album owner');
    }

```

Two separate invariants — the owner's role is immutable, and an album cannot be left ownerless — guarding the two steps the escalation needed. The endpoints also now sit behind dedicated `AlbumUserUpdate` and `AlbumUserDelete` permissions rather than inheriting whatever an Editor happened to have.

Sit with the shape of that for a moment. You shared a holiday album with your sister and gave her edit rights so she could add her own pictures. The permission model said "can add and remove photos." The API said "can change who owns this." The gap between those two sentences is the entire bug, and it is the same gap I wrote about in [week one on Vaultwarden](https://sudosecurity.org/self-hosting-vaultwarden/), where the org and collection permission model was where nearly every 2026 advisory landed.

That's now three weeks running where the vulnerability was in the sharing layer rather than the storage layer. I don't think that's coincidence. Storage is a small, well-understood surface that people test hard. Permissions are a combinatorial surface — roles times objects times endpoints — and the number of combinations is large enough that gaps are the default state unless something systematically checks them.

## The 4.3 That Deserves More Than 4.3

`CVE-2026-104867` (GHSA-g82p-27g4-864h), published 13 October, is scored `AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N` for 4.3 Medium. That also computes correctly:

```
impact         = 1.4124
exploitability = 2.8353
base           = roundup(4.2477) = 4.3

```

Any authenticated non-admin user could call `GET /api/admin/users/{id}/calendar-heatmap` and get back another user's activity. The route sat in the admin controller but was decorated with a non-admin permission and no admin flag, and `UserAdminService.getCalendarHeatmap` performs no ownership or role check of its own — it does `findOrFail(id)` and returns the data. What comes back is the target's total asset count, a per-day histogram of upload dates, and a per-day histogram of *capture* dates, which is a record of when that person was taking photographs.

**The published affected range is wrong, and I can show it.** The advisory states affected versions `>= 3.0.0, <= 3.0.3` and patched versions `None`. Both are incorrect. The guard is one line and you can read it at each tag:

```console
$ for T in v3.0.3 v3.1.0 v3.2.0 v3.3.0; do
>   printf '%-10s ' "$T"
>   git show $T:server/src/controllers/user-admin.controller.ts \
>     | grep -A1 "calendar-heatmap'" | grep -o '@Authenticated({[^}]*})'
> done
v3.0.3     @Authenticated({ permission: Permission.UserRead })
v3.1.0     @Authenticated({ permission: Permission.UserRead })
v3.2.0     @Authenticated({ permission: Permission.AdminUserRead, admin: true })
v3.3.0     @Authenticated({ permission: Permission.AdminUserRead, admin: true })

```

3.1.0 carries the vulnerable guard, so the real affected range runs to 3.1.x rather than stopping at 3.0.3 — a whole minor release that the advisory tells you is safe. And it *was* patched, in 3.2.0, where the permission becomes `AdminUserRead` and `admin: true` appears, matching the pattern every sibling route in that controller already used. The advisory's "patched: None" means nobody updated the metadata after the fix shipped.

If you are on 3.1.x and you checked the advisory to decide whether this applied to you, it told you no. It was wrong. That is a better argument for reading the diff than anything I could write, and it is the same lesson as [the Nextcloud piece two weeks ago](https://sudosecurity.org/nextcloud-collabora-code-cve-2026-110447/) arriving from the opposite direction: there, the changelog understated a fix; here, the advisory understates the bug.

CVSS says Confidentiality: Low, and by its own definitions that's right. No photo content leaks.

But the counts include **archived and locked assets**, and that's where the score and the reality part company. The advisory says so, and you can see why in the query the repository builds:

```typescript
    return this.db
      .selectFrom('asset')
      .select(date.as('date'))
      .select((eb) => eb.fn.countAll<number>().as('count'))
      .where('ownerId', '=', asUuid(ownerId))
      .where(column, '>=', dto.from)
      .where(column, '<', dto.to)
      .where('deletedAt', 'is', null)
      .groupBy(date)
      .orderBy('date', 'asc')
      .execute();

```

Four predicates: owner, two for the date window, and soft-delete. There is no visibility predicate, so nothing in that query knows or cares whether an asset is archived or sitting in the locked folder. It is not that the filter was wrong. There was never a filter, because the endpoint was written for an admin, and an admin seeing everything is correct. Immich's locked folder exists so that some photos are not visible in the main timeline. The feature's entire purpose is that their existence isn't obvious. An endpoint that tells any other account on the server how many locked assets you have, and on what dates you added them, doesn't leak the photos. It leaks the fact that there are photos you chose to hide, and when.

For a lot of the metrics CVSS measures, "metadata only" is a fair discount. For a private photo library it isn't, because in that context the metadata *is* the sensitive thing. I'm not arguing the vector is scored wrong. It's scored correctly. I'm arguing that a 4.3 on a shared family server is a different animal from a 4.3 on a single-user instance, and the framework has no way to say so. If you run Immich for more than one household, treat this one as higher than its number.

## The One That Gets You Code Execution

`GHSA-q89f-h332-8q2h`, published 28 September, rated High: an authenticated SVG upload reaches ImageMagick's coders and enables remote code execution.

I'm not going to pretend I've analysed this one. No CVE is attached that I could find, and I haven't read the code path. What I'll say is that "untrusted file reaches ImageMagick" has been a reliable source of RCE for roughly fifteen years. SVG is the worst of the formats for it, because an SVG is a document with external-reference semantics rather than a bitmap. And any service whose job is accepting images from strangers has this surface permanently.

It needs an authenticated account. So, as with Jellyfin: whoever you gave an account to.

---

> If you're enjoying what you've read so far, we recommend [The SSO Tax: Why Self-Hosted Projects Are Gating Login Behind a Paywall](https://sudosecurity.org/sso-tax-self-hosted-login-paywall/) as your next read.

---

## If You Haven't Done the 3.0 Jump Yet

Immich 3.0 shipped on 2 July 2026 and the current stable is 125 days further on. If you are still on 2.x, the upgrade isn't a tag bump, and two things in it will bite.

**pgvecto.rs is gone.** From the release post: "v3.0.0 drops support for pgvecto.rs." That is not a soft deprecation. In the current tree the supported set is exactly two extensions and `DB_VECTOR_EXTENSION` accepts exactly two strings:

```typescript
export const VECTOR_EXTENSIONS = [DatabaseExtension.VectorChord, DatabaseExtension.Vector] as const;

```

```typescript
      case 'pgvector': {
        vectorExtension = DatabaseExtension.Vector;
        break;
      }
      case 'vectorchord': {
        vectorExtension = DatabaseExtension.VectorChord;
        break;

```

`vectors`, which is what pgvecto.rs installs as, is not among them — I grepped for it specifically and it is accepted nowhere. (Watch the names here, incidentally: `pgvector` and `pgvecto.rs` are two different extensions whose names differ by two characters, and `pgvector` is still fully supported. A careless grep matches one while you are looking for the other, which I managed to do to myself while checking this.)

So if you have been running Immich since before v1.133.0 and never completed the migration to VectorChord, you have to do that migration *first*, on the old version, before 3.0 will come up. This is the one that turns an evening into a weekend, and it's entirely silent until you try.

**`IMMICH_VERSION` is a manual edit.** The documented path is:

```bash
# in .env, change IMMICH_VERSION from v2 to v3, then:
docker compose pull && docker compose up -d

```

That's it, and it's worth noting precisely because it's so unremarkable — the project's own framing is that "For the vast majority of users, updating works exactly as it always has," with "many of the breaking changes are updates to API endpoints \[that\] affect only third-party tools."

Which is true, and is also the trap. The breaking changes land on third-party tools, and a modern Immich install is surrounded by third-party tools: `immich-go`, CLI uploaders, backup scripts, whatever you wired into [your broader self-hosted stack](https://sudosecurity.org/self-hosted-productivity-stack-nextcloud-vaultwarden-immich-jellyfin-paperless-2026/). Removed endpoints include `/api/server/theme`, the getRandom endpoint, and the old timeline sync endpoints. `deviceId` and `deviceAssetId` are gone. Durations are milliseconds now instead of seconds, and several numeric types changed to integers — which is the kind of change that doesn't error. It just produces numbers that are a thousand times wrong somewhere downstream.

One change in 3.0 is a security improvement you shouldn't reverse: `fix!: do not allow insecure oauth requests by default`. If your OAuth provider stopped working at 3.0, that's this, and the right response is to fix the certificate rather than to find the flag. Immich had a separate advisory this year — `GHSA-hfvf-5c8x-8rc4`, CWE-295 — for OIDC requests running with TLS verification disabled. The default changed because the old default was the bug.

## What This Doesn't Cover

I cloned the repository, and the material I have quoted from it is first-hand: the heatmap route guard at four separate tags, the repository query behind it, the owner-immutability and last-owner checks in the album service, the redirect lint rule and the `Route.continue` test file, and the vector-extension constants. Where there is a code block above, I read the file it came from. I also computed both CVSS vectors myself rather than repeating them.

Two things remain second-hand and I want them labelled. The **mechanisms** of the original bugs — what an Editor could do before 3.0.3, how the June redirect reached XSS — come from advisory text, because the fixes I can read are in the current tree and the vulnerable code is behind a history window I did not fetch. I verified what the guard does now; I did not read what it failed to do then. And the **SVG/ImageMagick** advisory I have described in general terms only. I could not locate its fix commit, and I am not going to characterise a code path I have not opened.

On the count: I enumerated fourteen advisories carrying 2026 dates, by name and GHSA ID, across both pages of the security tab plus the individual advisory pages. There is a fifteenth published advisory, GHSA-3832-6r8h-9cfm, "Account hijacking through oauth2," but it is dated July 2025 and I have left it out of the 2026 figure — though it is worth noting in passing that it is also an OAuth bug, which makes the pattern older than this year.

What I could not establish is CVE assignments for most of them. Only two of the fourteen have a CVE that I could find, which is normal for a project that self-issues advisories, and which means a CVE feed would have shown you roughly two-fourteenths of this article. That is the practical argument for subscribing to a project's advisories rather than a vulnerability database.

Also out of scope: machine-learning configuration and the `MACHINE_LEARNING_MODEL_REVISION=v2` recommendation, hardware transcoding, the mobile apps, external library handling, and the actual mechanics of the VectorChord migration, which deserves its own write-up and which I haven't performed on a real library.

## The Actual Point

Four weeks into this series there's a pattern I didn't go looking for and can't now ignore. Vaultwarden's 2026 advisories concentrated in the organisation and collection permission model. Jellyfin's were all reachable by ordinary users, one of them by anyone who could name a file. Immich's cluster in album sharing, OAuth, and redirects. Nextcloud's was the outlier — a genuine pre-auth stranger-on-the-internet bug — and it was in a bundled convenience component rather than the core.

Three of four were in the sharing layer. Not the crypto, not the storage, not the network edge. The part that exists so you can let someone else in.

That makes sense if you think about what self-hosting actually is. You didn't build a fortress. You built a service and then started handing out keys, because a photo library nobody else can see is a hard drive, and a password vault that doesn't sync to your partner's phone is a text file. The sharing is the point. It's also, consistently, where the bugs are.

So the hardening question for a self-hosted service isn't really "is it exposed." It is: for every person and integration I granted access to, what could they do if they decided to, or if someone else got hold of what they have? On Immich before 3.0.3, the answer for an album editor included taking the album. That isn't a question a firewall answers.

Run 3.3.6\. Check who has Editor on what. And when you next grant access to something so a person does not have to ask you for it, price in that you are extending the attack surface to them.