CVE-2022-38664 Cross-site Scripting in Jenkins Job Configuration History Plugin
Attackers with job configuration permissions can inject malicious scripts via job names, leading to stored XSS in the Jenkins System Configuration History page.
- 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-38664?
CVE-2022-38664 is a medium-severity cross-site scripting vulnerability in Jenkins Job Configuration History Plugin, published on 23 Aug 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 Job Configuration History Plugin 1165.v8cc9fd1f4597 and earlier does not escape the job name on the System Configuration History page, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to configure job names.
Weakness: CWE-79
Which versions are affected by CVE-2022-38664?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:jobConfigHistory. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:jobConfigHistory Maven | All versions | 1166.vc9f255f45b |
org.jenkins-ci.plugins:jobConfigHistory Maven | All versions | 1166.vc9f255f45b |
Products include Jenkins Job Configuration History.
How do I fix CVE-2022-38664?
Upgrade org.jenkins-ci.plugins:jobConfigHistory to 1166.vc9f255f45b 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-38664 being exploited?
There is no known exploitation of CVE-2022-38664 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Job Configuration History Plugin
- CVE-2023-41933 Job Configuration History Plugin's path traversal allows exploiting XXE vulnerability
- CVE-2023-41932 Path traversal allows exploiting XXE vulnerability in Jenkins Job Configuration History Plugin
- CVE-2023-41931 XSS vulnerability in Jenkins Job Configuration History Plugin
- CVE-2026-57287 Jenkins Job Configuration History Plugin doesn't redact encrypted values of secrets in job and agent configurations
- CVE-2023-41930 Path traversal in Jenkins Job Configuration History Plugin
Sources
Also known as GHSA-28w4-h56g-grg7.