{"id":"CVE-2024-53272","aliases":["CVE-2024-53272"],"related":[],"kind":"vulnerability","state":"published","title":"GHSL-2024-109: Reflected XSS in /login in habitica","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Habitica es un programa de código abierto para generar hábitos. Las versiones anteriores a la 5.28.5 son vulnerables a ataques de Cross-Site Scripting reflejado. Las funciones `login` y `social media` en `RegisterLoginReset.vue` contienen dos vulnerabilidades de XSS reflejado debido a una función de desinfección incorrecta. Un atacante puede especificar un parámetro `redirectTo` malicioso para activar la vulnerabilidad, lo que le otorga al atacante el control de la cuenta de la víctima cuando esta se registra o inicia sesión con un enlace especialmente manipulado. La versión 5.28.5 contiene un parche.","source":"nvd"}],"published":"2024-12-11T22:06:56.331Z","modified":"2026-06-17T08:08:43.930Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 5.28.5","status":"affected"}],"vendor":"HabitRPG","product":"habatica","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.28.5"}],"vendor":"habitica","product":"habitica","cpe":"cpe:2.3:a:habitica:habitica:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2024-109_GHSL-2024-111_habitica/","tags":["exploit","third-party-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/HabitRPG/habitica/commit/946ade5da1f52a804ef2ba76d49416c43e8166bf","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-12-12T15:56:14.828Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-53272","url":"https://www.cve.org/CVERecord?id=CVE-2024-53272","licence":"CVE Terms of Use","modified":"2024-12-12T16:00:45.275Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-53272","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53272","licence":"Public domain","modified":"2026-06-17T08:08:43.930Z"}],"updatedAt":"2026-11-25T22:58:50.009Z","epss":{"score":0.00478,"percentile":0.42939,"date":"2026-12-01T12:00:22.000Z"}}