CVE-2021-3985: Kevinpapst/kimai2 Cross-Site Scripting Vulnerability
HIGHCVE-2021-3985 is a HIGH (CVSS 8.0) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Kevinpapst/kimai2 libraries in the Packagist ecosystem. The issue involves kimai2 is vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 1.16.3.
CVE-2021-3985 at a Glance
Security Impact
CVSS: 8.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2021-3985
To remediate this vulnerability, upgrade all affected Kevinpapst/kimai2 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 kevinpapst/kimai2 to 1.16.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for kevinpapst/kimai2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-3985, inspect your project dependencies for Kevinpapst/kimai2:
inspect dependencies for kevinpapst/kimai2
Analyze the terminal output to locate any version of Kevinpapst/kimai2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.16.3), 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 Kevinpapst/kimai2, 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-2021-3985 Affected Kevinpapst/kimai2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
kevinpapst/kimai2
|
Packagist |
< 1.16.3
|
1.16.3
|
References
Frequently Asked Questions
What is CVE-2021-3985?
Which Kevinpapst/kimai2 versions are affected?
What version fixes CVE-2021-3985?
Is kevinpapst/kimai2 affected?
What is the CVSS score of CVE-2021-3985?
What CWE is associated with CVE-2021-3985?
How can I check Packagist dependencies for CVE-2021-3985?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x68c-4gmm-5g43",
"modified" : "2021-12-03T15:19:53Z",
"published" : "2021-12-03T20:40:38Z",
"aliases" : [ "CVE-2021-3985" ],
"summary" : "kimai2 is vulnerable to Cross-site Scripting",
"details" : "kimai2 is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "kevinpapst/kimai2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.16.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-3985"
}, {
"type" : "WEB",
"url" : "https://github.com/kevinpapst/kimai2/commit/76e09447c85e762882126b49626a4fe4d93fe8b5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kevinpapst/kimai2"
}, {
"type" : "WEB",
"url" : "https://github.com/kevinpapst/kimai2/releases/tag/1.16.3"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/89d6c3de-efbd-4354-8cc8-46e999e4c5a4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-12-02T21:25:44Z",
"nvd_published_at" : "2021-12-01T11:15:00Z"
}
}