PT-2024-35707 · Habitica · Habitica

Kevin Stubbings

·

Published

2024-12-11

·

Updated

2025-09-05

·

CVE-2024-53274

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Habitica versions prior to 5.28.5
Description Habitica is an open-source habit-building program. The issue arises from a reflected cross-site scripting vulnerability in the register function in home.vue, caused by an incorrect sanitization function. An attacker can specify a malicious redirectTo parameter to trigger the vulnerability, allowing arbitrary JavaScript code to be executed in the context of the victim's session.
Recommendations For versions prior to 5.28.5, update to version 5.28.5 to resolve the issue. As a temporary workaround, consider restricting access to the register function in home.vue to minimize the risk of exploitation. Avoid using the redirectTo parameter in the affected function until the issue is resolved.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-53274

Affected Products

Habitica