CVE-2022-25185
Published: 15 February 2022
Summary
CVE-2022-25185 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Jenkins Generic Webhook Trigger. Its CVSS base score is 5.4 (Medium).
Operationally, ranked at the 42.7th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
Deeper analysis
The vulnerability is a stored cross-site scripting flaw (CWE-79) in the Jenkins Generic Webhook Trigger Plugin versions 1.81 and earlier. It stems from the plugin failing to escape the build cause string supplied via webhook payloads, allowing malicious markup to be persisted and later rendered in the Jenkins UI. The issue carries a CVSS 3.1 score of 5.4 and affects any Jenkins instance using the plugin to process incoming webhooks.
Attackers who possess Item/Configure permission on a job can craft webhook requests that embed executable script in the build cause. When other users subsequently view the job's build history or related pages, the stored payload executes in their browsers with the context of the Jenkins application, enabling theft of session tokens or other actions within the reflected security scope.
The Jenkins security advisory published on 2022-02-15 and the accompanying Openwall disclosure recommend upgrading the Generic Webhook Trigger Plugin to a version that properly escapes the build cause field. Administrators are advised to apply the fix promptly and to review jobs that accept untrusted webhook input.
EPSS for the CVE rose from a low baseline after disclosure to a peak of 0.1230 on 2025-12-11 before receding to the current value of 0.0021, indicating a period of increased exploitation interest that later subsided.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-1159
Vulnerability details
Jenkins Generic Webhook Trigger Plugin 1.81 and earlier does not escape the build cause when using the webhook, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Item/Configure permission.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.