high · 8.1 Patched

Vikunja: Plaintext storage of password-reset/email-confirm tokens in database enables account takeover on DB read access

CVE-2026-62376 · GHSA-r6w9-259g-gwrv · GO-2026-6748 · published 9 Oct 2026

How serious is it

  • Severity: high, CVSS score 8.1 out of 10.
  • No exploit prediction (EPSS) score yet.
  • Not on the CISA list of exploited vulnerabilities.
  • No public exploit in Exploit-DB.

Is your app affected by CVE-2026-62376?

Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.

Who is affected

  • code.vikunja.io/api (Go) <= 2.3.0

How to check

  1. Run go list -m code.vikunja.io/api in your project to see the installed version, including copies pulled in by other packages.
  2. Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.

How to fix

Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
  1. Upgrade code.vikunja.io/api to 2.4.0 or later, commit the lockfile and redeploy.
  2. If a vulnerable version was live, check your logs and rotate the secrets that server could read.

The advisory

### Summary Vikunja stores password-reset, email-confirmation, and account-deletion tokens in the `user_tokens` table in **plaintext**. If an attacker gains read access to the database through a backup leak, misconfigured storage, or SQL-level exposure, they can immediately use pending tokens to take over user accounts without knowing passwords. ### Details `pkg/user/token.go` — `genToken()` stores the raw random string directly: ```go func genToken(u *User, kind TokenKind) (*Token, error) { tokenStr, err := utils.CryptoRandomString(tokenSize) ... return &Token{ UserID: u.ID, Kind: kind, Token: tokenStr, // stored as-is, no hashing }, nil } ``` Lookup also uses plaintext equality: ```go func getToken(s *xorm.Session, token string, kind TokenKind) (t *Token, err error) { has, err := s.Where("kind = ? AND token = ?", kind, token).Get(t) } ``` Affected token types: - `TokenPasswordReset` (`pkg/user/user_password_reset.go:120`) - `TokenEmailConfirm` (`pkg/user/user_create.go:101`, `pkg/user/update_email.go:88`) - `TokenAccountDeletion` (`pkg/user/delete.go:102`) Note: CalDAV tokens correctly use `generateHashedToken` with bcrypt — the same protection is absent for the above types. ### PoC ```sql -- Attacker with DB read dumps all pending password-reset tokens: SELECT u.email, t.token FROM user_tokens t JOIN users u ON u.id = t.user_id WHERE t.kind = 1; -- Then takes over any account: curl -X POST https://vikunja.example.com/api/v1/user/password/reset \ -H 'Content-Type: application/json' \ -d '{"token": "<plaintext_from_db>", "new_password": "AttackerPass1!"}' ``` ### Impact Any read access to the database (leaked backup, cloud misconfiguration, secondary SQLi) allows an attacker to take over every user account with a pending reset token within the 24-hour token lifetime. Full account takeover including admin accounts. ### Fix Replace `genToken` with `generateHashedToken` for `TokenPasswordReset`, `TokenEmailConfirm`, and `TokenAccountDeletion`. Update the corresponding lookup to use bcrypt comparison (`bcrypt.CompareHashAndPassword`) rather than direct SQL equality, mirroring the existing CalDAV token implementation in the same file. If possible, please apply for a CVE number when posting.

Check your whole app

Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.

References

Merged from GitHub Advisory Database, OSV, NVD. Last updated 24 Oct 2026. All vulnerabilities · RSS · JSON