Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-105785 Overview
CVE-2026-105785 affects Joplin Server, the backend for the open source note-taking and to-do application Joplin. Prior to version 3.7.2, the server stores CSRF, account-confirmation, email-change, and password-reset tokens in a single tokens table without distinguishing their intended purpose. The UserModel.resetPassword function accepts any token returned by TokenModel.userFromToken, enabling cross-purpose token reuse. An attacker who obtains a victim's CSRF or confirmation token through a separate disclosure channel can submit it to the public password-reset endpoint to replace the victim's password. The resulting reset also deletes the victim's existing sessions and API applications. The weakness is classified as [CWE-620: Unverified Password Change].
Critical Impact
An attacker who obtains any non-password token issued to a victim can hijack the account via the password-reset endpoint, invalidating existing sessions and API integrations.
Affected Products
- Joplin Server versions prior to 3.7.2
- packages/server/src/models/TokenModel.ts (purpose-less token storage)
- packages/server/src/models/UserModel.ts (resetPassword accepts any valid token)
Discovery Timeline
- 2026-10-06 - CVE-2026-105785 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-105785
Vulnerability Analysis
Joplin Server mints single-use tokens for several distinct workflows: CSRF protection, email-based account confirmation, email-change confirmation, and password reset. All four token classes were persisted in the same tokens table with no purpose field. When a request reached the password-reset endpoint, UserModel.resetPassword validated the submitted token by calling TokenModel.userFromToken, which returned the associated user record for any unexpired token regardless of why it was originally issued.
This design allows a token minted for one workflow to be redeemed in another. If an attacker observes a victim's CSRF token (for example, through a referer leak, log exposure, or XSS on a lower-privileged surface) or intercepts an account-confirmation link, they can POST that same string to the password-reset endpoint and set a new password for the victim's account. The server then deletes active sessions and API applications tied to the user, locking the legitimate owner out.
Root Cause
The root cause is missing authorization scope on security tokens, an instance of [CWE-620]. Tokens were treated as a flat capability — proof of possession alone was enough to authenticate a password change — rather than scoped credentials bound to a specific action.
Attack Vector
Exploitation is network-based and requires no privileges or user interaction, but the attacker must first obtain a valid non-password token for the victim through a separate disclosure channel. This dependency raises attack complexity but does not require any credentials on the Joplin Server itself.
// Patch: introduce a purpose column and enum to scope tokens
// Source: https://github.com/laurent22/joplin/commit/7766eefa11fa006b6a1971da24e0c820cf1d2118
// File: packages/server/src/migrations/20260821120000_token_purpose.ts
import { DbConnection } from '../db';
export const up = async (db: DbConnection) => {
await db.schema.alterTable('tokens', (table) => {
table.string('purpose', 32).defaultTo('').notNullable();
});
};
export const down = async (db: DbConnection) => {
await db.schema.alterTable('tokens', (table) => {
table.dropColumn('purpose');
});
};
// Patch: define TokenPurpose and require password-reset tokens to match
// Source: https://github.com/laurent22/joplin/commit/7766eefa11fa006b6a1971da24e0c820cf1d2118
// File: packages/server/src/models/TokenModel.ts
import { uuidgen } from '../utils/uuid';
import BaseModel from './BaseModel';
// A token minted for one purpose must not be accepted for another - e.g. a CSRF
// or confirmation token (both purpose-less) must not be usable to reset a
// password.
export enum TokenPurpose {
PasswordReset = 'password_reset',
}
export default class TokenModel extends BaseModel<Token> {
private tokenTtl_: number = 7 * 24 * 60 * 60 * 1000;
Detection Methods for CVE-2026-105785
Indicators of Compromise
- Password-reset requests on /users/:id/password that succeed without a preceding forgot password email flow for the same user.
- Mass deletion of sessions and api_applications records immediately following a password change.
- Reset tokens appearing in requests that match values previously issued as CSRF or confirmation tokens for the same user.
Detection Strategies
- Correlate tokens table reads with the endpoint consuming them; a token issued in a confirmation or CSRF flow being redeemed by the password-reset handler is anomalous.
- Alert on password changes that are not preceded by an outbound password_reset email event within a short time window.
- Review web proxy and application logs for referer leaks or query strings that expose Joplin token values to third-party hosts.
Monitoring Recommendations
- Enable verbose audit logging for UserModel.resetPassword and record the originating token's intended purpose after upgrading to 3.7.2.
- Monitor for sudden session invalidation events across multiple accounts, which can indicate scripted exploitation.
- Track anomalous spikes in password-reset endpoint traffic from a single source IP or user agent.
How to Mitigate CVE-2026-105785
Immediate Actions Required
- Upgrade Joplin Server to version 3.7.2 or later without delay.
- Audit recent password-change events and force a reset for any accounts with reset activity not initiated by the user.
- Revoke and reissue API application tokens for accounts that experienced unexpected session invalidation.
Patch Information
The fix is delivered in Joplin Server 3.7.2 via pull request #16274 and commit 7766eefa. The patch adds a purpose column to the tokens table and introduces a TokenPurpose enum. UserModel.resetPassword now only accepts tokens whose purpose equals password_reset. Full details are in the GHSA-8qm8-mp6h-qf35 advisory.
Workarounds
- Place the /users/:id/password reset endpoint behind an authenticated reverse proxy or WAF rule that requires a recent password_reset email event.
- Shorten the server-wide token TTL below the default 7 days to reduce the window in which a leaked token can be abused.
- Restrict administrative and multi-user Joplin Server deployments to trusted networks until the 3.7.2 upgrade is applied.
# Upgrade Joplin Server to the patched release
docker pull joplin/server:3.7.2
docker stop joplin-server && docker rm joplin-server
docker run -d --name joplin-server \
--env-file /etc/joplin/joplin.env \
-p 22300:22300 \
joplin/server:3.7.2
# Verify the token purpose migration ran
psql -U joplin -d joplin -c "\d tokens" | grep purpose
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

