Cyber Resilience

CVE-2022-25185

Medium

Published: 15 February 2022

Published
15 February 2022
Modified
21 November 2024
KEV Added
Patch
15 February 2022
CVSS Score v3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS Score 0.0021 42.7th percentile
Risk Priority 11 60% EPSS · 20% KEV · 20% CVSS

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

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

jenkins
generic webhook trigger
≤ 1.81

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.

addresses: CWE-79

Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.

addresses: CWE-79

Validates web inputs to reject script-related content that could produce XSS.

addresses: CWE-79

Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.

References