# CVE-2024-53272: GHSL-2024-109: Reflected XSS in /login in habitica

- Severity: Medium 5.0 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:H/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-12-11T22:06:56.331Z
- Modified: 2026-06-17T08:08:43.930Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- HabitRPG habatica: < 5.28.5
- habitica habitica: before 5.28.5

## Every score

- GitHub_M: CVSS:4.0 5.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:H/SA:N/E:P`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://securitylab.github.com/advisories/GHSL-2024-109_GHSL-2024-111_habitica/> (exploit, third-party-advisory)
- <https://github.com/HabitRPG/habitica/commit/946ade5da1f52a804ef2ba76d49416c43e8166bf> (patch)

## Sources

- CVE List: [CVE-2024-53272](https://www.cve.org/CVERecord?id=CVE-2024-53272), CVE Terms of Use, modified 2024-12-12
- NVD: [CVE-2024-53272](https://nvd.nist.gov/vuln/detail/CVE-2024-53272), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-53272 · Whole record: https://cve.day/CVE-2024-53272.json · Rebuilt by cve.day 2026-11-25T22:58:50.009Z
