CVE-2022-34784: Cross-Site Scripting in Jenkins build-metrics Plugin

Summary

01/07/2022
No i
High
8.0

CVE-2022-34784: Cross site scripting in Jenkins build-metrics Plugin. Affects org.jenkins-ci.plugins:build-metrics versions < 1.3. 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 build-metrics Plugin is a Maven package that provides functionality for analyzing and visualizing build metrics in Jenkins. It allows users to view and track various metrics related to builds, such as build duration, success rate, and test coverage. This plugin is widely used in Jenkins environments to gain insights into build performance and quality. However, version 1.3 of the plugin is vulnerable to a stored cross-site scripting (XSS) attack.

Vulnerability Detail

The vulnerability in the Jenkins build-metrics Plugin 1.3 arises from the lack of proper escaping of the build description on one of its views. This allows attackers with Build/Update permission to inject malicious scripts into the build description field, which will be executed when viewed by other users. The impact of this vulnerability is significant, as it can lead to unauthorized access, data theft, and further exploitation of the affected Jenkins instance. The vulnerability has a CVSS score of 8.0, indicating a high severity level.

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 affected view or restrict access to it. By limiting the permissions of users who can view and modify build descriptions, the risk of exploitation can be reduced. However, this is not a permanent solution, and upgrading to the patched version is strongly recommended.

Conclusion

The Jenkins build-metrics Plugin version 1.3 is vulnerable to a stored cross-site scripting (XSS) attack. This can lead to unauthorized access, data theft, and further exploitation of the affected Jenkins instance. It is recommended to upgrade to a patched version of the plugin and regularly update all Jenkins plugins to ensure a secure environment. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.jenkins-ci.plugins:build-metrics →

Share this vulnerability

FAQ

The vulnerability allows attackers to execute arbitrary scripts in the context of other users, potentially leading to unauthorized access, data theft, and further exploitation of the Jenkins instance.

You can use the Vulert Playground at Vulert Scanner to check if your Jenkins instance is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the pom.xml file.

Yes, the maintainers of the Jenkins build-metrics Plugin have released a fix in a subsequent version. It is recommended to upgrade to the latest version (post 1.3) to address the vulnerability.

As a temporary workaround, you can disable the affected view or restrict access to it. By limiting the permissions of users who can view and modify build descriptions, the risk of exploitation can be reduced. However, upgrading to the patched version is strongly recommended.

Regularly updating all Jenkins plugins, including the build-metrics Plugin, is crucial to mitigate the risk of potential vulnerabilities. Additionally, following security best practices, such as enforcing strong passwords and limiting user permissions, can help maintain a secure Jenkins environment.

Related vulnerabilities

Recent vulnerabilities recorded for org.jenkins-ci.plugins:build-metrics.

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