CVE-2022-34787: Jenkins Project Inheritance Plugin XSS Vulnerability
Summary
CVE-2022-34787: Jenkins Project Inheritance Plugin vulnerable to cross site scripting. Affects hudson.plugins:project-inheritance versions < 21.04.03. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Jenkins Project Inheritance Plugin is a Maven ecosystem package that allows for the inheritance of project configurations in Jenkins. It provides a convenient way to define a set of common configurations and reuse them across multiple projects. This plugin is widely used in Jenkins environments to streamline project management and configuration.
Vulnerability Detail
The Jenkins Project Inheritance Plugin version 21.04.03 and earlier is vulnerable to a cross-site scripting (XSS) attack. The plugin fails to properly escape the reason for a build being blocked in tooltips, making it susceptible to XSS attacks. An attacker with control over the reason a queue item is blocked can exploit this vulnerability. The impact of this vulnerability includes potential unauthorized access to sensitive information, session hijacking, and the execution of malicious scripts within the context of the affected user's browser.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, users can disable the use of tooltips in the Jenkins Project Inheritance Plugin. This can be achieved by modifying the plugin configuration to remove or comment out the tooltip-related code. However, this workaround may impact the user experience and should only be considered until the plugin can be updated to a fixed version.
Conclusion
The Jenkins Project Inheritance Plugin version 21.04.03 and earlier is vulnerable to a cross-site scripting (XSS) attack. It is crucial to update the plugin to version 21.04.04 or later to mitigate this vulnerability. Disabling tooltips can serve as a temporary workaround, but updating to the fixed version is recommended. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for hudson.plugins:project-inheritance →
FAQ
This vulnerability can lead to unauthorized access to sensitive information, session hijacking, and the execution of malicious scripts within the user's browser.
You can use the Vulert Playground at Vulert Scanner to check if your Jenkins environment is affected by this vulnerability. Simply provide your pom.xml file, and Vulert will analyze it for any open-source vulnerabilities, including this XSS vulnerability.
Yes, a fix is available in version 21.04.04 or later of the Jenkins Project Inheritance Plugin. It is recommended to update the plugin to the latest version to mitigate the XSS vulnerability.
Yes, you can disable tooltips in the Jenkins Project Inheritance Plugin as a temporary workaround. However, this may impact the user experience and should only be considered until the plugin can be updated to a fixed version.
For more information about this vulnerability, you can refer to the GitHub Security Advisory GHSA-3hx4-285w-v6mm at https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-3hx4-285w-v6mm/GHSA-3hx4-285w-v6mm.json
References
Related vulnerabilities
Recent vulnerabilities recorded for hudson.plugins:project-inheritance.