79% vs 51%: independent neobanks lag on app security. Read the report

Deep Dive

Deep Dive

Homebox OIDC Account Takeover via Unverified Email (CVE-2026-144598)

Homebox links OIDC logins by email without verification, so an attacker who registers a victim's address at the identity provider can take over the account.

TL;DR

  • A Homebox account takeover lets an attacker log in as any user, including a superuser, by presenting an unverified OIDC email that matches the victim's account. CVE-2026-144598 carries CVSS v4.0 9.2 Critical.
  • Homebox 0.22.0-rc.2 through 0.27.1 are affected when OIDC is enabled, HBOX_OIDC_VERIFY_EMAIL is unset, and the provider accepts unverified addresses. The setting defaults to false.
  • No fixed release exists as of 2026-12-04. No public proof of concept or in-the-wild exploitation is reported, and the CVE is not in CISA KEV as of 2026-12-04.
  • Set HBOX_OIDC_VERIFY_EMAIL=true now and restrict self-registration at the identity provider. "How do I fix it?" covers the remaining steps.

Am I affected?

You are affected if your Homebox instance accepts OIDC logins from an identity provider that lets a user choose an email address without proving control of it. All of these must hold:

  • The Homebox version is 0.22.0-rc.2 through 0.27.1.
  • OIDC is enabled with HBOX_OIDC_ENABLED=true.
  • HBOX_OIDC_VERIFY_EMAIL is unset or false, which is the default.
  • The identity provider allows self-registration, or it lets an existing user set an unverified email address.
  • A target Homebox account exists with the email the attacker can claim.

A Homebox instance that uses only local accounts, with OIDC disabled, is not on the affected path. An instance with HBOX_OIDC_VERIFY_EMAIL=true rejects a token whose email_verified claim is false or missing, so the unverified-email route closes. A provider that proves the address, such as a corporate directory that only issues verified addresses, removes the condition at the provider.

Release line Affected versions Fixed version
Homebox 0.22.0-rc.2 through 0.27.1 none as of 2026-12-04

Check the running version and the setting:

docker exec <container> /app/api --version
docker inspect <container> --format '{{range .Config.Env}}{{println .}}{{end}}' | grep -E 'HBOX_OIDC'

For a binary install, run the downloaded binary with --version. The OIDC settings are environment variables or command-line flags, so check both places.

How do I fix it?

No released version fixes this flaw as of 2026-12-04. Turn on email verification at the Homebox layer and remove the provider condition that lets an attacker claim an address.

  1. Set HBOX_OIDC_VERIFY_EMAIL=true on every Homebox instance that uses OIDC.
  2. Restart the container or the service so the setting takes effect.
  3. Confirm the setting is present in the running environment.
  4. Disable self-registration at the identity provider, or require an administrator to approve new accounts.
  5. Prevent users from changing their email address without proving control of the new address.
  6. Review existing Homebox accounts for an unexpected OIDC subject, especially superusers.
docker run -e HBOX_OIDC_VERIFY_EMAIL=true ... <image>

The setting only helps when the provider sends an email_verified claim. Homebox returns an error when the claim is missing, so a provider that never sends it will reject every OIDC login after the change. Test one login before you roll the setting out to every instance. Keep local login available until the OIDC path is confirmed.

If OIDC is not needed, disable it with HBOX_OIDC_ENABLED=false. That removes the attack path, but it also removes single sign-on for every user. A network rule that keeps the identity provider's registration page away from untrusted users is a complement, not a replacement, for the Homebox setting.

What is the root cause?

Homebox resolves an OIDC login in two steps. It first looks up the account by the pair of issuer and subject. If no account matches, it falls back to an email lookup and binds the existing account to the new identity. The fallback does not require a verified email.

LoginOIDC() in backend/internal/core/services/service_user.go at 0.27.1 performs the lookup and the migration:

    // Try to get existing user by OIDC identity
    usr, err := svc.repos.Users.GetOneOIDC(ctx, issuer, subject)
    if err != nil {
        if !ent.IsNotFound(err) {
            recordServiceSpanError(span, err)
            log.Err(err).Str("issuer", issuer).Str("subject", subject).Msg("failed to lookup user by OIDC identity")
            return UserAuthTokenDetail{}, err
        }
        // Not found: attempt migration path by email (legacy) if email provided
        if email != "" {
            migrationCtx, migrationSpan := entityServiceTracer().Start(ctx, "service.UserService.LoginOIDC.legacyEmailMigration")
            legacyUsr, lerr := svc.repos.Users.GetOneEmail(migrationCtx, email)
            if lerr == nil {
                log.Info().Str("email", email).Str("issuer", issuer).Str("subject", subject).Msg("migrating legacy email-based OIDC user to issuer+subject")
                if uerr := svc.repos.Users.SetOIDCIdentity(migrationCtx, legacyUsr.ID, issuer, subject); uerr == nil {
                    usr = legacyUsr

SetOIDCIdentity() in backend/internal/data/repo/repo_users.go writes the new identity onto the account without checking who owns it:

    err := r.db.User.UpdateOneID(uid).SetOidcIssuer(issuer).SetOidcSubject(subject).Exec(ctx)

The verification gate sits in backend/app/api/providers/oidc.go. It runs only when the configuration flag is set:

    // Check if email is verified
    if p.config.VerifyEmail {
        if claims.EmailVerified == nil {
            return services.UserAuthTokenDetail{}, fmt.Errorf("email verification status not found in token claims")
        }

        if !*claims.EmailVerified {
            return services.UserAuthTokenDetail{}, fmt.Errorf("email not verified")
        }
    }

VerifyEmail is declared in backend/internal/sys/config/conf.go with conf:"default:false". The default configuration therefore accepts an email_verified value of false, and the migration path matches the account by the email string alone.

The comment above LoginOIDC says the function uses issuer and subject for identity association. The code still keeps a legacy email fallback that predates that model. The fallback is the part that trusts an unproven address.

GetOneEmail() lowercases and trims the address before the query, so the attacker only needs a token whose email matches the victim's address after normalization. The attacker's subject is new to Homebox, which is why the first lookup fails and the migration branch runs. No other check compares the token's issuer against the account's previous issuer.

How is it exploited?

An attacker needs an account at the identity provider that Homebox trusts, with the victim's email address in its claims. The advisory describes the mechanism; it does not publish exploit code.

  1. The attacker registers at the identity provider with the victim's email address, or changes an existing account to that address, without verifying it.
  2. The attacker starts the OIDC login on the Homebox instance.
  3. The provider returns a token with its issuer, the attacker's subject, the victim's email and email_verified set to false or omitted.
  4. Homebox skips the verification gate because VerifyEmail is false.
  5. Homebox finds no account for the attacker's issuer and subject, so it looks up the victim's email.
  6. Homebox binds the victim's account to the attacker's issuer and subject, then issues a session token for the victim.
  7. The attacker is logged in as the victim, with the victim's role and data.

The attacker does not need a password, a session token or access to the Homebox host. The only prerequisite is the ability to obtain an identity-provider token carrying the victim's address.

How does the attack flow?

An unverified email claim at the identity provider becomes a Homebox session because the login path still migrates an existing account by email.

flowchart LR A["Attacker registers with the victim's email"] --> B["IdP issues a token with email_verified false"] B --> C["Homebox skips the verification gate"] C --> D["no issuer and subject match"] D --> E["email lookup finds the victim account"] E --> F["SetOIDCIdentity rebinds the account"] F --> G["session issued as the victim"]

What can an attacker do?

An attacker can log in as any Homebox user whose email they can claim, including a superuser. That gives access to the victim's inventory, attachments, locations, labels and any API keys the account can create. A superuser can also change instance settings and manage other users.

The takeover also gives the attacker a way to keep access. The account is now bound to the attacker's issuer and subject, so the attacker can log in again through the same identity provider after the victim changes a password. Removing the binding requires an administrator to edit the account.

The impact needs all of these conditions:

  • OIDC is enabled and HBOX_OIDC_VERIFY_EMAIL is false.
  • The identity provider lets the attacker obtain a token with the victim's email.
  • A Homebox account exists with that email.
  • The attacker can reach the Homebox login endpoint.

The CVSS v4.0 vector is CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N. It records high confidentiality, integrity and availability impact, with an attack complexity rated high and an attack requirement present. The complexity reflects the need for a provider account with the victim's unverified email, not a limit on the takeover once that condition holds.

Why does the fix work?

No vendor fix exists as of 2026-12-04, so there is no patch to review. A correct fix has to stop binding an existing account to a new identity on the strength of an email string. The safest change is to require email_verified to be true before the email lookup runs, and to refuse the migration when the claim is missing.

A fix must add the equivalent of this check before the lookup:

    if !emailVerified {
        return UserAuthTokenDetail{}, ErrorInvalidLogin
    }

A stronger fix removes the email migration entirely and binds accounts only by issuer and subject. That breaks existing deployments that have not yet bound their users, so a migration with an explicit administrator action is safer than an automatic email match. The patch is complete for this CVE only when an unverified email can no longer select an existing account.

How do I check if I was compromised?

Homebox logs the email migration at information level. Search the container or service logs for the migration message and for OIDC logins from an unexpected subject.

docker logs <container> 2>&1 | grep -i "migrating legacy email-based OIDC user"

The log line carries the email, the issuer and the subject. A subject that does not belong to the expected identity provider account is a lead. Check the users table for accounts whose oidc_subject changed around the same time.

Homebox uses SQLite by default, with the database at /data/homebox.db, and PostgreSQL when HBOX_DATABASE_DRIVER=postgres. Run this query with the client for the configured database, against the live database or a consistent copy:

select id, email, oidc_issuer, oidc_subject from users order by updated_at;

Review the identity provider's audit log for a registration or an email change that used the victim's address. An attempt that fails before the migration may leave only the provider-side record.

Timeline

  • 2025-12-06: Homebox 0.22.0-rc.2 was released, the first version the advisory lists as affected.
  • 2026-10-23: Homebox 0.27.1 was released and remains the latest version.
  • 2026-12-04: VulnCheck published the advisory and the CVE record for CVE-2026-144598.

No Homebox release has fixed CVE-2026-144598
Figure 1: The affected releases from 0.22.0-rc.2 to 0.27.1 and the advisory date, with no fixed release. Source: Homebox releases and the VulnCheck advisory, checked December 4, 2026

FAQ

Is there a fixed Homebox version?

No. The advisory lists 0.22.0-rc.2 through 0.27.1 as affected, and 0.27.1 is the latest release. No published version closes the path.

Does the attack need a malicious identity provider?

No. It needs an identity provider that Homebox trusts and that lets an attacker obtain a token with the victim's unverified email. A self-hosted provider with open registration is the easiest case. A corporate directory that verifies addresses removes the condition.

Does setting HBOX_OIDC_VERIFY_EMAIL=true fix it?

It closes the unverified-email route, which is the route this CVE describes. The provider must send an email_verified claim. If the claim is missing, Homebox rejects the login, so test one account before you enable the setting everywhere.

Is there a public proof of concept?

No exploit code is published. The advisory names the affected functions and the login flow, which is enough to reproduce the takeover in a test deployment with a provider that allows unverified registration.

Will the victim notice the takeover?

Not necessarily. The attacker logs in through the normal OIDC flow and receives a valid session. Homebox logs the email migration at information level, but it does not alert the account owner. A user who is already signed in may not see a new login prompt.

Is CVE-2026-144598 in CISA KEV?

No. The CISA KEV catalog was at version 2026.11.30 with 1,810 records on 2026-12-04, and this CVE is not in it. No in-the-wild exploitation is reported.

What if I cannot change the OIDC settings?

Disable OIDC with HBOX_OIDC_ENABLED=false and use local accounts until the instance can be updated. That removes single sign-on, so plan the change with the users who rely on it.

References

  • VulnCheck, "Homebox 0.22.0-rc.2 through 0.27.1 Account Takeover via OIDC Login", advisory published 2026-12-04 (checked December 4, 2026): https://www.vulncheck.com/advisories/homebox-0.22.0-rc.2-through-0.27.1-account-takeover-via-oidc-login
  • CVE Program, "CVE-2026-144598" record, published 2026-12-04 (checked December 4, 2026): https://www.cve.org/CVERecord?id=CVE-2026-144598
  • Homebox source at 0.27.1, backend/internal/core/services/service_user.go, LoginOIDC() (checked December 4, 2026): https://github.com/sysadminsmedia/homebox/blob/v0.27.1/backend/internal/core/services/service_user.go
  • Homebox source at 0.27.1, backend/internal/data/repo/repo_users.go, SetOIDCIdentity() (checked December 4, 2026): https://github.com/sysadminsmedia/homebox/blob/v0.27.1/backend/internal/data/repo/repo_users.go
  • Homebox source at 0.27.1, backend/app/api/providers/oidc.go, email verification gate (checked December 4, 2026): https://github.com/sysadminsmedia/homebox/blob/v0.27.1/backend/app/api/providers/oidc.go
  • Homebox source at 0.27.1, backend/internal/sys/config/conf.go, VerifyEmail default (checked December 4, 2026): https://github.com/sysadminsmedia/homebox/blob/v0.27.1/backend/internal/sys/config/conf.go
  • Homebox documentation, "OIDC SSO", HBOX_OIDC_VERIFY_EMAIL (checked December 4, 2026): https://github.com/sysadminsmedia/homebox/blob/main/docs/src/content/docs/en/quick-start/configure/oidc.mdx
  • Homebox documentation, "Database", SQLite default and the PostgreSQL driver (checked December 4, 2026): https://github.com/sysadminsmedia/homebox/blob/main/docs/src/content/docs/en/quick-start/configure/database.mdx
  • Homebox source at 0.27.1, backend/internal/data/ent/schema/mixins/base.go, created_at and updated_at fields (checked December 4, 2026): https://github.com/sysadminsmedia/homebox/blob/v0.27.1/backend/internal/data/ent/schema/mixins/base.go
  • GitHub, sysadminsmedia/homebox repository, 8,036 stars and 641 forks (checked December 4, 2026): https://github.com/sysadminsmedia/homebox
  • Docker Hub, sysadminsmedia/homebox image, 426,330 pulls (checked December 4, 2026): https://hub.docker.com/r/sysadminsmedia/homebox
  • CISA, Known Exploited Vulnerabilities catalog, version 2026.11.30, 1,810 records (checked December 4, 2026): https://www.cisa.gov/known-exploited-vulnerabilities-catalog

Free scan

Scan your own app for free

or book a demo

Keep reading

Related articles

Browse the blog