CVE-2021-21638: CSRF vulnerability in Jenkins Team Foundation Server Plugin allows capturing credentials

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

Summary

24/05/2022
No i
High
8.8

CVE-2021-21638: CSRF vulnerability in Jenkins Team Foundation Server Plugin allow capturing credentials. Affects org.jenkins-ci.plugins:tfs versions < 5.157.1. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Jenkins Team Foundation Server Plugin is a Maven-based package that provides integration between Jenkins and Microsoft Team Foundation Server (TFS). It allows users to connect their Jenkins instance with TFS to perform various tasks such as building, testing, and deploying applications. The plugin facilitates seamless collaboration between development and operations teams by enabling continuous integration and delivery workflows. However, the plugin is vulnerable to a cross-site request forgery (CSRF) attack, which can lead to the capture of stored credentials in Jenkins.

Vulnerability Detail

The CSRF vulnerability in Jenkins Team Foundation Server Plugin (version 5.157.1 and earlier) allows attackers to connect to a URL of their choice using credentials obtained through another method. By exploiting this vulnerability, an attacker can trick a user into performing unintended actions on their behalf, potentially leading to unauthorized access, data leakage, or other malicious activities. In this specific case, the attacker can capture credentials stored in Jenkins, compromising the security of the system.

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 or remove the Jenkins Team Foundation Server Plugin if it is not essential for their workflows. This will eliminate the risk of CSRF attacks through this specific plugin. However, this workaround may impact the integration between Jenkins and TFS, so it should be carefully evaluated before implementation.

Conclusion

The CSRF vulnerability in Jenkins Team Foundation Server Plugin exposes users to the risk of unauthorized access and data leakage. It is crucial to promptly update the plugin to the latest version and follow secure coding practices to prevent CSRF attacks. For further assistance and support in vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

Cross-Site Request Forgery (CSRF) is a type of attack where an attacker tricks a user into performing unintended actions on a web application. In the context of this vulnerability, it allows an attacker to connect to a specified URL using stolen credentials, potentially leading to unauthorized access or data leakage.

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, and you can verify the impact of this vulnerability without any signup or installation.

The CSRF vulnerability in Jenkins Team Foundation Server Plugin can result in the capture of stored credentials in Jenkins. This can lead to unauthorized access to sensitive information, data leakage, or other malicious activities performed by the attacker using the compromised credentials.

Yes, a fix is available for this vulnerability. Users should upgrade the Jenkins Team Foundation Server Plugin to version 5.157.2 or later. The updated version includes security patches that address the CSRF vulnerability.

Disabling or removing the Jenkins Team Foundation Server Plugin can temporarily mitigate the vulnerability. However, this may impact the integration between Jenkins and TFS, so it should be carefully evaluated before implementing this workaround.

Related vulnerabilities

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

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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