Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Habitica account
-
DeliverySet display name with HTML event handler
-
ExploitSend private message to victim
-
ExecutionVictim exports inbox.html
-
PersistInjected script executes on open
-
ImpactPrivate messages exposed
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) an authenticated Habitica account to send a private message (PR:L); (2) the attacker setting a sender display name containing an HTML event handler, which is stored unescaped; and (3) the victim actively using the data-export feature and opening the generated /export/inbox.html file in a browser (UI:P - the script does not fire until the victim opens the exported file). Limiting factors that reduce realistic risk: attacker authentication is mandatory, the payload only triggers on victim-initiated export and file opening rather than during normal app use, and impact is confined to disclosure of the victim's own private messages (no integrity or availability effect). Affects Habitica through version 5.53.1. |
| Impact | This is a medium-severity stored HTML/script injection (CWE-79) in Habitica's inbox export feature, and the signals align consistently rather than conflict. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N) scores 5.1 and accurately reflects a constrained attack: network-reachable but requiring attacker authentication (PR:L) and passive victim interaction (UI:P), with only low confidentiality impact (VC:L) and no integrity or availability impact. No EPSS score, no CISA KEV listing, and no confirmed public exploit code are present in the input; the only references are the VulnCheck advisory and a GitHub link to the vulnerable source in dataexport.js, neither of which is a working exploit. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a real-but-non-urgent issue. This is not a high-CVSS-but-illusory finding, but it is also not a drop-everything priority: the authentication requirement, the dependency on the victim actively exporting and opening their own inbox file, and the limited impact (disclosure of the victim's private messages only) keep real-world risk moderate. No key signals are missing in a way that changes the picture, though the absence of EPSS/KEV data simply reflects a recently disclosed, lower-profile product rather than a contradiction. |
| Exploit ScenarioDerived | An authenticated attacker registers or uses an existing Habitica account and sets a display name containing an HTML event handler, then sends a private message to the victim. When the victim later uses the data-export feature and opens the generated inbox.html in a browser, the attacker's injected markup executes in that page context, exposing the victim's private messages. No confirmed working exploit code is referenced, though a VulnCheck advisory and the vulnerable source location are public. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Habitica through version 5.53.1 fails to escape sender display names when generating the inbox data export, so an authenticated user can store an HTML event handler in their display name and then send a private message to a target. The injected script executes only after the victim runs the data export and opens the resulting /export/inbox.html file in a browser, at which point it can read and exfiltrate the victim's private messages. The attacker must hold a valid account (PR:L) and the victim must take the export-and-open action (UI:P), and impact is limited to confidentiality of the victim's own messages; no public exploit code was identified at time of analysis and the item is not in CISA KEV, placing it in a this-month remediation window rather than an emergency one.
RemediationAI
No vendor-released fixed version is identified in the available data; the affected range is stated as Habitica through 5.53.1, so confirm the current release status against https://github.com/HabitRPG/habitica and the advisory at https://www.vulncheck.com/advisories/habitica-through-5.53.1-html-injection-via-private-message-inbox-export before upgrading, and treat any build incorporating a fix to the unescaped display-name interpolation in website/server/controllers/top-level/dataexport.js (lines 159-198) as the remediation target. Where an immediate upgrade is not possible, the actionable compensating controls are: stop using the /export/inbox.html data-export feature until patched, accepting that users lose offline backup of private messages; if exported inbox files must be reviewed, open them in a text editor or an isolated, credential-free browser profile with JavaScript disabled, accepting that this only protects the reviewer and not other users who export later; and, for self-hosted deployments, apply an HTML-entity encode to sender display names in the export template or server-side sanitization of profile display names, accepting that this is an unsupported local modification that must be re-applied after each upstream update. Restricting private messaging to trusted contacts reduces the attack surface but does not remove the vulnerable export path.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a CWE-79 improper-neutralization issue in Habitica's top-level data export controller (website/server/controllers/top-level/dataexport.js, lines 159-198 in v5.53.1), which assembles the user's private-message inbox into a standalone inbox.html document. Sender display names - attacker-controlled profile fields - are interpolated into that generated HTML without HTML-entity encoding, so markup such as an element carrying an event handler survives into the exported file. Because the payload is persisted server-side at message-send time and rendered later, this behaves as stored HTML injection whose execution context is the exported static file rather than the live Habitica origin; the practical consequence described by the source is disclosure of the victim's private messages when the file is opened. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P, VC:L, VI:N, VA:N, with no subsequent-system impact) and the independent CVSS 3.1 assessment (AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N) agree that this is a low-confidentiality, no-integrity, no-availability issue gated on an authenticated sender and a victim-initiated export-and-open action. The precise browser-origin behavior of the generated file is not described in the available sources.
Know when Habitica 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Attacker needs an authenticated account (PR:L) and the victim must export and open the inbox file (UI:R); only private-message confidentiality is affected (C:L), with no integrity or availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Habitica through 5.53.1 contains an HTML injection vulnerability in the /export/inbox.html endpoint that allows authenticated attackers to inject markup via unescaped sender display names. Attackers can set a display name containing an HTML event handler and message the victim, so script runs when the exported inbox.html is opened, exposing private messages.
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
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
In habitica versions v4.119.0 through v4.232.2 are vulnerable to DOM XSS via the login page. Rated medium severity (CVSS
In habitica versions v4.119.0 through v4.232.2 are vulnerable to open redirect via the login page. Rated medium severity
Habitica is an open-source habit-building program. Rated medium severity (CVSS 5.0), this vulnerability is remotely expl
Habitica is an open-source habit-building program. Rated medium severity (CVSS 5.0), this vulnerability is remotely expl
A regular expression denial of service in Habitica's group member-search endpoint allows an authenticated user to send a
Unauthenticated attackers can evade Habitica's login throttling through version 5.53.1 by supplying a different arbitrar
Habitica is an open-source habit-building program. Rated low severity (CVSS 2.0), this vulnerability is remotely exploit
Blind server-side request forgery in Habitica through 5.53.1 lets an authenticated user register a webhook whose URL poi
EUVD-2026-141677
GHSA-h278-v5ff-pr42
NVD
CVE.org
EPSS
Exploit-DB