CVE-2018-1000142: Jenkins GitHub Pull Request Builder Plugin Local File System Access Vulnerability

org.jenkins-ci.plugins:ghprb Updated 02 Oct 2025

Summary

14/05/2022
Yes i
Moderate
4.0

CVE-2018-1000142: An exposure of sensitive information vulnerability exists in Jenkins GitHub Pull Request Builder Plugin version 1.39.0 and older in GhprbCause.java that allows an attacker with local file system access to obtain GitHub c... Affects org.jenkins-ci.plugins:ghprb versions < 1.40.0. Fixed in 1.40.0. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Jenkins GitHub Pull Request Builder Plugin is a plugin for the Jenkins automation server that allows users to trigger builds on GitHub pull requests. It integrates with GitHub and provides functionality for building, testing, and deploying pull requests. This plugin is commonly used in software development workflows to automate the build and test process for pull requests.

Vulnerability Detail

An exposure of sensitive information vulnerability has been identified in Jenkins GitHub Pull Request Builder Plugin version 1.39.0 and older. The vulnerability resides in the GhprbCause.java file and allows an attacker with local file system access to obtain GitHub credentials. This can lead to unauthorized access to GitHub repositories and sensitive information. The plugin used to store serialized objects containing the credentials on disk, but this behavior was changed in version 1.40.0 to prevent the storage of credentials. However, builds started before the plugin was updated to 1.40.0 may still retain the encoded credentials on disk.

How To Fix

Latest published version: 1.42.2 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.40.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, as a general best practice, it is recommended to follow the steps mentioned in the 'how_to_fix' section to mitigate the vulnerability.

Conclusion

The Jenkins GitHub Pull Request Builder Plugin version 1.39.0 and older is vulnerable to a local file system access issue that allows an attacker to obtain GitHub credentials. To mitigate this vulnerability, it is crucial to revoke old GitHub credentials used in Jenkins and update the plugin to version 1.40.0 or newer. Following the recommended steps will help protect against unauthorized access to GitHub repositories and sensitive information. For further support on vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

This vulnerability allows an attacker with local file system access to obtain GitHub credentials, potentially leading to unauthorized access to GitHub repositories and sensitive information.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your Jenkins instance is affected by this vulnerability. Simply provide the URL of your Jenkins instance and the playground will analyze your pom.xml file to identify any vulnerable dependencies.

There are no known public exploits for this vulnerability at the time of writing. However, it is important to apply the recommended fixes and keep the Jenkins GitHub Pull Request Builder Plugin up to date to mitigate the risk.

Yes, a script is provided for use in the Script Console that attempts to remove old stored credentials from build.xml files. You can find the script in the official Jenkins documentation or seek assistance from the Jenkins community.

Yes, there are alternative plugins available for integrating Jenkins with GitHub pull requests. Some popular options include the 'GitHub Branch Source Plugin' and the 'GitHub Integration Plugin'. It is recommended to evaluate these alternatives and choose the one that best fits your requirements.

Related vulnerabilities

Recent vulnerabilities recorded for org.jenkins-ci.plugins:ghprb.

How To Fix

Latest published version: 1.42.2 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.40.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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