CVE-2017-1000389
Description
Jenkins global-build-stats plugin 1.4 and earlier had reflected XSS via JSON responses served as text/html, and CSRF via missing POST enforcement.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Jenkins global-build-stats plugin 1.4 and earlier had reflected XSS via JSON responses served as text/html, and CSRF via missing POST enforcement.
Vulnerability
The Jenkins global-build-stats plugin version 1.4 and earlier returns JSON responses that include request parameters, but sets the Content-Type header to text/html. This causes browsers to interpret the response as HTML, enabling a reflected cross-site scripting (XSS) vulnerability. Additionally, plugin URLs that modify data accept GET requests instead of requiring POST, allowing cross-site request forgery (CSRF) attacks. The affected plugin version range is 1.4 and all earlier releases [1][2].
Exploitation
For reflected XSS, an attacker can craft a malicious URL with JavaScript embedded in a parameter and trick a victim into clicking it; the victim's browser then executes the script because the response Content-Type is text/html. For CSRF, an attacker can host a page that submits a GET request to a data-modifying URL (e.g., form submission) on a Jenkins instance where the victim is authenticated, thereby performing unauthorized state changes without the victim's consent. No special network position is required beyond standard web access [1][2].
Impact
Successful reflected XSS allows an attacker to execute arbitrary JavaScript in the victim's browser session, potentially disclosing session tokens or performing actions on behalf of the victim. Successful CSRF allows an attacker to perform state-changing operations (e.g., modifying build statistics configuration) without the victim's knowledge, leading to data integrity compromise [1][2].
Mitigation
The vulnerability is fixed in global-build-stats plugin version 1.5. The fix ensures JSON responses use the correct Content-Type: application/json and that all state-changing URLs require POST requests, eliminating both the XSS and CSRF vectors. Users should upgrade to version 1.5 or later. No workaround is provided for earlier versions [1][2].
AI Insight generated on May 22, 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:global-build-statsMaven | < 1.5 | 1.5 |
Affected products
1Patches
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-gw8g-hh47-q4gwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2017-1000389ghsaADVISORY
- jenkins.io/security/advisory/2017-10-23ghsaWEB
- jenkins.io/security/advisory/2017-10-23/mitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.