CVE-2022-34195: Cross-site Scripting in Jenkins Repository Connector Plugin

Summary

24/06/2022
No i
High
8.0

CVE-2022-34195: Cross-site Scripting in Jenkins Repository Connector Plugin. Affects org.jenkins-ci.plugins:repository-connector versions < 2.2.0. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Jenkins Repository Connector Plugin is a Maven plugin used in the Jenkins automation server. It allows users to configure and manage Maven repositories for their projects. The plugin provides functionality to define parameters for Maven Repository Artifacts. These parameters, such as name and description, are displayed on various views in Jenkins. However, versions 2.2.0 and earlier of the plugin do not properly escape the name and description parameters, making them vulnerable to cross-site scripting (XSS) attacks.

Vulnerability Detail

The vulnerability in Jenkins Repository Connector Plugin allows attackers with Item/Configure permission to exploit a stored cross-site scripting (XSS) vulnerability. By injecting malicious scripts into the name or description parameters of Maven Repository Artifacts, an attacker can execute arbitrary code in the context of other users accessing views that display these parameters. This can lead to various security risks, including unauthorized access, data theft, and privilege escalation. The vulnerability can be exploited if the parameters are listed on vulnerable pages, such as the 'Build With Parameters' and 'Parameters' pages, which have not been hardened to prevent XSS attacks.

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

If upgrading the plugin is not immediately feasible, a temporary workaround is to ensure that the vulnerable pages, such as 'Build With Parameters' and 'Parameters', are hardened to prevent XSS attacks. This can be achieved by implementing input sanitization and output encoding techniques to properly handle user-supplied data. It is recommended to consult security best practices and guidelines for web application development to implement these measures effectively.

Conclusion

The Jenkins Repository Connector Plugin is vulnerable to a stored cross-site scripting (XSS) vulnerability, which can be exploited by attackers with Item/Configure permission. Upgrading to the latest version of the plugin and implementing proper security measures is crucial to mitigate the risk. It is recommended to regularly update Jenkins and its plugins to ensure the latest security patches are applied. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for org.jenkins-ci.plugins:repository-connector →

Share this vulnerability

FAQ

The vulnerability allows attackers to execute arbitrary code in the context of other users accessing views that display the vulnerable parameters. This can lead to unauthorized access, data theft, and privilege escalation.

You can use Vulert's playground (https://vulert.com/scanner) to check if your Jenkins installation is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the pom.xml file.

The recommended mitigation is to upgrade Jenkins Repository Connector Plugin to version 2.2.1 or later. Additionally, hardening the vulnerable pages to prevent XSS attacks can provide temporary protection.

Yes, the CVSS score for this vulnerability is 8.0, indicating a high severity level.

You can find more information about this vulnerability in the Jenkins security advisory for CVE-2022-34195 (https://www.jenkins.io/security/advisory/2022-06-24/).

Related vulnerabilities

Recent vulnerabilities recorded for org.jenkins-ci.plugins:repository-connector.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback