CVE-2024-55224 Vaultwarden HTML injection vulnerability

Critical 9.6 Published Updated

Attackers can execute arbitrary code by injecting HTML payloads into email username fields in Vaultwarden.

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
Available

What is CVE-2024-55224?

CVE-2024-55224 is a critical cross-site scripting vulnerability in n/a, published on 9 Jan 2025. 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

An HTML injection vulnerability in Vaultwarden prior to v1.32.5 allows attackers to execute arbitrary code via injecting a crafted payload into the username field of an e-mail message.

Weakness: CWE-79

Which versions are affected by CVE-2024-55224?

2 open source packages ship an affected version, including vaultwarden. It affects 1 product.

PackageAffectedFixed in
vaultwarden crates.ioAll versions1.32.5
vaultwarden crates.ioAll versions1.32.5

Products include Dani-Garcia Vaultwarden.

How do I fix CVE-2024-55224?

Upgrade vaultwarden to 1.32.5 or later.

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-55224 being exploited?

There is no known exploitation of CVE-2024-55224 in the wild and no public exploit code.

Sources

Also known as GHSA-g5x8-v2ch-gj2g, MINI-cgrq-jj39-564m.

Is CVE-2024-55224 in your software?

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

Check your SBOMs for free