Skip to content

Changing a user's password via CLI does not revoke sessions & access tokens

Low
renchap published GHSA-f3q3-rmf7-9655 Oct 13, 2025

Package

mastodon

Affected versions

< 4.4.6, < 4.3.14, < 4.2.27

Patched versions

4.4.6, 4.3.14, 4.2.27

Description

Summary

When an admin resets an account's password via bin/tootctl accounts modify --reset-password the sessions and access tokens are not revoked, allowing a compromised account to continue being used.

Impact

Administrators may reset a user's password as a result of an account compromise, expecting the password reset to lock attackers out, only for compromised sessions and tokens to still be usable.

Severity

Low

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N

CVE ID

CVE-2025-62174

Weaknesses

Insufficient Session Expiration

According to WASC, Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization. Learn more on MITRE.

Credits