SecurityContext

CVE-2024-53272: Habitica - Reflected XSS

  • Cve: CVE-2024-53272
  • Name: Habitica - Reflected XSS
  • 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.
  • Impact: Attackers can execute malicious scripts in victims' browsers, potentially stealing cookies, session tokens, or hijacking accounts.
  • Remediation: Update to version 5.28.5 or later.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Victim must click a malicious link
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00478
  • Epss percentile: 0.4214
  • Assignee: [email protected]
  • Published at: 2024-12-12T02:15:28Z
  • Age in days: 712
  • Modified at: 2026-06-17T08:08:43Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-53272
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://securitylab.github.com/advisories/GHSL-2024-109_GHSL-2024-111_habitica/nvd2024-12-12

References

UrlSourceTags
https://github.com/HabitRPG/habitica/commit/946ade5da1f52a804ef2ba76d49416c43e8166bfnvdPatch
https://securitylab.github.com/advisories/GHSL-2024-109_GHSL-2024-111_habitica/nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
habitica:habitica< 5.28.5nonvd/v1/products/habitica/habitica

Projects

RepositoryLink kindsIndexedUrl
HabitRPG/habiticacommityes/v1/repositories/HabitRPG/habitica

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2024-12-12
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts