CVE-2024-55226: Vaultwarden Cross-Site Scripting Vulnerability
LOWCVE-2024-55226 is a LOW cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Vaultwarden libraries in the crates.io ecosystem. The issue involves vaultwarden authenticated reflected cross-site scripting (xss) vulnerability. Remediation is available by upgrading affected packages to version 1.32.5.
CVE-2024-55226 at a Glance
How to Fix CVE-2024-55226
To remediate this vulnerability, upgrade all affected Vaultwarden dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade vaultwarden to 1.32.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for vaultwarden
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-55226, inspect your project dependencies for Vaultwarden:
inspect dependencies for vaultwarden
Analyze the terminal output to locate any version of Vaultwarden in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.32.5), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Vaultwarden, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-55226 Affected Vaultwarden Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
vaultwarden
|
crates.io |
< 1.32.5
|
1.32.5
|
References
Frequently Asked Questions
What is CVE-2024-55226?
Which Vaultwarden versions are affected?
What version fixes CVE-2024-55226?
Is vaultwarden affected?
What CWE is associated with CVE-2024-55226?
How can I check crates.io dependencies for CVE-2024-55226?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vprm-27pv-jp3w",
"modified" : "2025-01-09T23:14:10Z",
"published" : "2025-01-09T21:31:32Z",
"aliases" : [ "CVE-2024-55226" ],
"summary" : "Vaultwarden authenticated reflected cross-site scripting (XSS) vulnerability",
"details" : "Vaultwarden v1.32.5 was discovered to contain an authenticated reflected cross-site scripting (XSS) vulnerability via the component /api/core/mod.rs.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "vaultwarden"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.32.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-55226"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dani-garcia/vaultwarden"
}, {
"type" : "WEB",
"url" : "https://github.com/dani-garcia/vaultwarden/releases/tag/1.32.4"
}, {
"type" : "WEB",
"url" : "https://github.com/dani-garcia/vaultwarden/releases/tag/1.32.5"
}, {
"type" : "WEB",
"url" : "https://insinuator.net/2024/11/vulnerability-disclosure-authentication-bypass-in-vaultwarden-versions-1-32-5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-09T23:14:10Z",
"nvd_published_at" : "2025-01-09T21:15:29Z"
}
}