CVE-2020-2136 Improper Neutralization of Input During Web Page Generation in Jenkins Git Plugin
Stored cross-site scripting in Jenkins Git Plugin allows attackers to inject malicious scripts via repository URL validation, potentially compromising user sessions.
- 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-2020-2136?
CVE-2020-2136 is a medium-severity cross-site scripting vulnerability in Jenkins Git Plugin, published on 9 Mar 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Jenkins Git Plugin 4.2.0 and earlier does not escape the error message for the repository URL for Microsoft TFS field form validation, resulting in a stored cross-site scripting vulnerability.
Weakness: CWE-79
Which versions are affected by CVE-2020-2136?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:git. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:git Maven | All versions | 4.2.1 |
org.jenkins-ci.plugins:git Maven | All versions | 4.2.1 |
Products include Jenkins Git.
How do I fix CVE-2020-2136?
Upgrade org.jenkins-ci.plugins:git to 4.2.1 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-2020-2136 being exploited?
There is no known exploitation of CVE-2020-2136 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Git Plugin
- CVE-2022-36882 Lack of authentication mechanism in Jenkins Git Plugin webhook
- CVE-2022-36883 Lack of authentication mechanism in Jenkins Git Plugin webhook
- CVE-2022-30947 Path traversal in Jenkins Git Mercurial and Repo Plugins
- CVE-2017-1000092 Cross-Site Request Forgery in Jenkins Git Plugin
- CVE-2022-38663 Improper masking of credentials Jenkins in Git Plugin
Sources
Also known as GHSA-6c7r-6p5m-cp82.