CVE-2025-5138 Bitwarden PDF File cross site scripting
Remote attackers can execute arbitrary scripts via malicious PDF files in Bitwarden, potentially compromising user sessions or data.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-5138?
CVE-2025-5138 is a medium-severity cross-site scripting vulnerability in Bitwarden, published on 25 May 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
A vulnerability was found in Bitwarden up to 2.25.1. It has been declared as problematic. Affected by this vulnerability is an unknown functionality of the component PDF File Handler. The manipulation leads to cross site scripting. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. The vendor was contacted early about this disclosure but did not respond in any way.
Which versions are affected by CVE-2025-5138?
How do I fix CVE-2025-5138?
No fix has been published for CVE-2025-5138 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-2025-5138 being exploited?
There is no known exploitation of CVE-2025-5138 in the wild and no public exploit code.
Sources
Also known as GHSA-36qw-697c-h8mq.