Mastodon
CVE-2025-62174
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSteal victim's session cookie or access token
-
ExploitAdmin resets password via tootctl CLI
-
ExecutionStale session/token not revoked
-
ImpactAttacker retains unauthorized account access
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session expiration enforcement
|
| Exploitation Conditions | Two concrete prerequisites must both hold: (1) the attacker must ALREADY possess a valid compromised session cookie or OAuth access token for the target account, and (2) an administrator must reset that account's password specifically via the command-line path |
| Impact | This is a low-severity session-management defect (CWE-613, Insufficient Session Expiration), and the multiple signals agree it is NOT a high priority. The provided CVSS base score is 3.5 (AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N), EPSS is only 0.21% (11th percentile), there is no CISA KEV listing, and no public exploit is identified at time of analysis - so all exploitation signals are consistently low with none conflicting. The defining limitation is that this is purely a remediation-failure flaw: it grants NO new access on its own. An attacker must ALREADY possess a compromised session or access token, and the flaw only means that the specific CLI remediation path ( |
| Exploit ScenarioDerived | An attacker who previously stole a user's session cookie or OAuth access token (e.g., via phishing or a prior compromise) retains it. A Mastodon administrator, believing they are locking the attacker out, resets the account password from the command line with |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
Mastodon before 4.4.6, 4.3.14, and 4.2.27 fails to revoke existing sessions and OAuth access tokens when an administrator resets an account password through bin/tootctl accounts modify --reset-password. This low-severity CWE-613 session-expiration defect only becomes relevant after an attacker already possesses a valid compromised session cookie or access token; the CLI reset then leaves that access intact, undermining an incident-response eviction step. No public exploit has been identified at time of analysis, and EPSS is 0.21% (11th percentile).
RemediationAI
Vendor-released patch: upgrade to Mastodon 4.4.6, 4.3.14, or 4.2.27, which makes the CLI password-reset path revoke sessions, subscriptions, and access tokens. The advisory is at https://github.com/mastodon/mastodon/security/advisories/GHSA-f3q3-rmf7-9655 and the patch commit is https://github.com/mastodon/mastodon/commit/1631fb80e8029d2c5425a03a2297b93f7e225217. The vendor states no known workarounds exist; if upgrade is delayed, do not rely on bin/tootctl accounts modify --reset-password alone to evict a compromised account, and additionally invalidate the affected user's existing sessions and OAuth access tokens through administrative mechanisms, accepting forced reauthentication and user disruption as the trade-off.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mastodon is a Ruby on Rails-based ActivityPub social network server that uses session cookies and OAuth access tokens to maintain authenticated access. CWE-613 (Insufficient Session Expiration) applies because the command-line password-reset path directly set the user's password instead of calling the model method that performs full credential revocation. The upstream commit modifies app/models/user.rb to add a change_password! method and updates lib/mastodon/cli/accounts.rb so --reset-password invokes it, thereby revoking sessions, subscriptions, and access tokens after changing the password. The CPE data identifies joinmastodon:mastodon with wildcard version ranges, while the advisory specifies affected releases before 4.4.6, 4.3.14, and 4.2.27.
Know when Mastodon gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N
Attacker already holds a stolen token so PR:L; continued use needs no victim interaction (UI:N) and yields read and write control of one account, hence C:L/I:L, A:N.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
Mastodon is a free, open-source social network server based on ActivityPub. In Mastodon before 4.4.6, 4.3.14, and 4.2.27, when an administrator resets a user account's password via the command-line interface using bin/tootctl accounts modify --reset-password, active sessions and access tokens for that account are not revoked. This allows an attacker with access to a previously compromised session or token to continue using the account after the password has been reset. This issue has been patched in versions 4.2.27, 4.3.14, and 4.4.6. No known workarounds exist.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
Mastodon through 4.0.2 allows attackers to cause a denial of service (large Sidekiq pull queue) by creating bot accounts
Mastodon is a free, open-source social network server based on ActivityPub. Rated high severity (CVSS 7.4), this vulnera
Mastodon is a free, open-source social network server based on ActivityPub Mastodon allows configuration of LDAP for aut
Mastodon is a free, open-source social network server based on ActivityPub. Rated critical severity (CVSS 9.9), this vul
Mastodon is a free, open-source social network server based on ActivityPub Mastodon allows configuration of LDAP for aut
Improper Restriction of Excessive Authentication Attempts in GitHub repository mastodon/mastodon prior to 4.0.0. Rated c
Server-Side Request Forgery in Mastodon before 4.5.10, 4.4.17, and 4.3.23 lets attackers coerce the server into issuing
Server-side request forgery in Mastodon (versions before 4.5.10, 4.4.17, and 4.3.23) lets an attacker who controls autho
Mastodon prior to versions 4.5.8, 4.4.15, and 4.3.21 contains an unauthenticated Open Redirect vulnerability in the `/we
Unauthenticated attackers can bypass FASP administrator approval in Mastodon 4.4.0-4.4.13 and 4.5.0-4.5.6 to subscribe t
Sign-up restriction bypass in Mastodon (self-hosted ActivityPub social server) before v4.5.9, v4.4.16, and v4.3.22 allow
Mastodon is a self-hosted, federated microblogging platform. Rated high severity (CVSS 8.2), this vulnerability is remot
NVD
CVE.org
EPSS
GitHub
Exploit-DB