CVE-2022-36905: Stored XSS vulnerability in Jenkins Maven Metadata Plugin

Summary

28/07/2022
No i
High
8.0

CVE-2022-36905: Stored XSS vulnerability in Jenkins Maven Metadata Plugin for Jenkins CI server plugin. Affects eu.markov.jenkins.plugin.mvnmeta:maven-metadata-plugin versions < 2.2. 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

The Jenkins Maven Metadata Plugin is a plugin for the Jenkins CI server that provides functionality related to Maven metadata. It allows users to configure the Repository Base URL for listing Maven artifact versions. This plugin is commonly used in Jenkins CI environments that utilize Maven for build and dependency management.

Vulnerability Detail

The Maven Metadata Plugin for Jenkins CI server Plugin version 2.2 and earlier is vulnerable to a stored cross-site scripting (XSS) attack. The vulnerability arises from the lack of URL validation for the Repository Base URL parameter in the List Maven Artifact Versions configuration. Attackers with Item/Configure permission can exploit this vulnerability by injecting malicious scripts into the Repository Base URL, which will be executed when users access the affected page. This can lead to unauthorized access, data theft, and potential remote code execution.

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 manually validate and sanitize the Repository Base URL parameter before configuring it in the List Maven Artifact Versions settings. This can be done by ensuring that the URL follows the expected format and does not contain any suspicious or potentially malicious content.

Conclusion

The Maven Metadata Plugin for Jenkins CI server Plugin version 2.2 and earlier is vulnerable to a stored XSS attack. It is crucial for users to update their installations and apply the recommended fixes to mitigate the risk of unauthorized access, data theft, and potential remote code execution. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for eu.markov.jenkins.plugin.mvnmeta:maven-metadata-plugin →

Share this vulnerability

FAQ

This vulnerability allows attackers to execute arbitrary scripts in the context of the affected Jenkins CI server. Depending on the permissions of the targeted user, this can lead to unauthorized access, data theft, and potential remote code execution.

Users of Jenkins CI server who have the Maven Metadata Plugin version 2.2 or earlier installed are affected by this vulnerability.

At the time of this advisory, there are no known public exploits specifically targeting this vulnerability. However, it is important to promptly apply the recommended fixes to mitigate the risk.

Yes, this vulnerability can be exploited remotely by attackers with Item/Configure permission on the Jenkins CI server.

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

Related vulnerabilities

Recent vulnerabilities recorded for eu.markov.jenkins.plugin.mvnmeta:maven-metadata-plugin.

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