CVE-2021-3983: Cross-site Scripting in kimai2
6.3
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.43248%
CWE
Published
12/3/2021
Updated
2/1/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
kevinpapst/kimai2 | composer | < 1.16.3 | 1.16.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unescaped user-controlled input being inserted into HTML through JavaScript template replacements. The patch adds an escape()
method that replaces &, <, and > with HTML entities. Specifically in KimaiRecentActivities.js
, the lines replacing %customer%, %project%, and %activity% placeholders were vulnerable as they directly used untrusted input without escaping. The commit clearly shows escaping was added to these exact template replacement points, confirming they were the vulnerable code paths.