What’s Vulnerable › Vulnerabilities
CVE-2024-53272: GHSL-2024-109: Reflected XSS in /login in habitica
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-12-12 · updated 2026-06-17
- Weakness: CWE-79
Description
Habitica is an open-source habit-building program. Versions prior to 5.28.5 are vulnerable to reflected cross-site scripting. The `login` and `social media` function in `RegisterLoginReset.vue` contains two reflected XSS vulnerabilities due to an incorrect sanitization function. An attacker can specify a malicious `redirectTo` parameter to trigger the vulnerability, giving the attacker control of the victim’s account when a victim registers or logins with a specially crafted link. Version 5.28.5 contains a patch.
Affected products
- habitica: before 5.28.5 — fixed in 5.28.5
How to fix
Upgrade to a fixed version: habitica 5.28.5. Check the vendor advisory for mitigations.
References
- https://github.com/HabitRPG/habitica/commit/946ade5da1f52a804ef2ba76d49416c43e8166bf
- https://securitylab.github.com/advisories/GHSL-2024-109_GHSL-2024-111_habitica/
Get alerted when CVE-2024-53272 or the next vulnerability affects your stack