CVE-2022-25185 Stored XSS vulnerability in Jenkins Generic Webhook Trigger Plugin
Stored XSS in Jenkins Generic Webhook Trigger Plugin allows attackers with configure permissions to execute scripts via unescaped build causes.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-25185?
CVE-2022-25185 is a medium-severity cross-site scripting vulnerability in Jenkins Generic Webhook Trigger Plugin, published on 15 Feb 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2022-25185?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:generic-webhook-trigger. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:generic-webhook-trigger Maven | All versions | 1.82 |
org.jenkins-ci.plugins:generic-webhook-trigger Maven | All versions | 1.82 |
Products include Jenkins Generic Webhook Trigger.
How do I fix CVE-2022-25185?
Upgrade org.jenkins-ci.plugins:generic-webhook-trigger to 1.82 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-25185 being exploited?
There is no known exploitation of CVE-2022-25185 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Generic Webhook Trigger Plugin
Sources
Also known as GHSA-qqwx-hcp6-25vr.