CVE-2024-53274 GHSL-2024-111: Reflected XSS in /home in habitica

Low 2.0 Published Updated

Attackers can execute arbitrary JavaScript in victim sessions via a malicious redirectTo parameter in the registration flow.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-53274?

CVE-2024-53274 is a low-severity cross-site scripting vulnerability in HabitRPG habatica, published on 11 Dec 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Habitica is an open-source habit-building program. Versions prior to 5.28.5 are vulnerable to reflected cross-site scripting. The `register` function in `home.vue` containsa reflected XSS vulnerability due to an incorrect sanitization function. An attacker can specify a malicious `redirectTo` parameter to trigger the vulnerability. Arbitrary javascript can be executed by the attacker in the context of the victim’s session. Version 5.28.5 contains a patch.

Weakness: CWE-79

Which versions are affected by CVE-2024-53274?

It affects 1 product.

Products include Habitica Habitica.

How do I fix CVE-2024-53274?

No fix has been published for CVE-2024-53274 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-53274 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53274 exists.

Sources

Is CVE-2024-53274 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free