CVE-2021-21652
Description
CSRF in Jenkins Xray Plugin allows attackers to capture credentials by tricking users into connecting to attacker-controlled URLs.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
CSRF in Jenkins Xray Plugin allows attackers to capture credentials by tricking users into connecting to attacker-controlled URLs.
Vulnerability
A cross-site request forgery (CSRF) vulnerability exists in Jenkins Xray - Test Management for Jira Plugin version 2.4.0 and earlier. The plugin does not properly validate requests, allowing an attacker to connect to an attacker-specified URL using attacker-specified credentials IDs obtained through another method. [1][2]
Exploitation
To exploit this vulnerability, an attacker must first obtain valid credentials IDs from Jenkins (e.g., via another vulnerability). Then, the attacker tricks a Jenkins user with appropriate permissions into sending a crafted request, which triggers a connection to an attacker-controlled URL using those credentials IDs. The user interaction is required because CSRF relies on the victim's browser session. [2]
Impact
Successful exploitation allows the attacker to capture credentials stored in Jenkins by having the plugin connect to an attacker-specified URL with the obtained credentials IDs. This leads to information disclosure of sensitive credentials, potentially compromising further systems. [1][2]
Mitigation
As of the provided references, no fixed version is explicitly mentioned. Users should monitor the Jenkins Xray plugin page for updates. The vulnerability was reported in the Jenkins Security Advisory dated 2021-05-11. Until a fix is released, users may consider disabling the plugin if not in use, or applying strict network controls to limit outbound connections from Jenkins. [1]
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.jenkins-ci.plugins:xray-connectorMaven | < 2.4.1 | 2.4.1 |
Affected products
2- Range: unspecified
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
4- github.com/advisories/GHSA-rrvg-2c69-p9rfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-21652ghsaADVISORY
- www.jenkins.io/security/advisory/2021-05-11/mitrex_refsource_CONFIRM
- www.jenkins.io/security/advisory/2021-05-11/ghsaWEB
News mentions
1- Jenkins Security Advisory 2021-05-11Jenkins Security Advisories · May 11, 2021