Skip to main content

Habitica CVE-2026-142329

| EUVDEUVD-2026-141677 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-12-02 VulnCheck GHSA-h278-v5ff-pr42
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Habitica account
  2. Delivery
    Set display name with HTML event handler
  3. Exploit
    Send private message to victim
  4. Execution
    Victim exports inbox.html
  5. Persist
    Injected script executes on open
  6. Impact
    Private 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

habitica 0 ≤5.53.1

Affected Packages

euvd habitica no fix

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

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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
vuln.today AI 3.5 LOW

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 70% exploitable
Prevalence
Low
niche open-source gamified habit-tracking app, no enterprise footprint
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy