CVE-2021-3985 Cross-site Scripting (XSS) - Stored in kevinpapst/kimai2
Stored XSS in Kimai allows attackers to inject malicious scripts, potentially leading to session hijacking or code execution.
- 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
- Available
What is CVE-2021-3985?
CVE-2021-3985 is a high-severity cross-site scripting vulnerability in kevinpapst/kimai2, published on 1 Dec 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
kimai2 is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Weakness: CWE-79
Which versions are affected by CVE-2021-3985?
2 open source packages ship an affected version, including kevinpapst/kimai2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
kevinpapst/kimai2 Packagist | All versions | 1.16.3 |
kevinpapst/kimai2 Packagist | All versions | 1.16.3 |
Products include Kimai Kimai2.
How do I fix CVE-2021-3985?
Upgrade kevinpapst/kimai2 to 1.16.3 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-2021-3985 being exploited?
There is no known exploitation of CVE-2021-3985 in the wild and no public exploit code.
Sources
Also known as GHSA-x68c-4gmm-5g43.