CVE-2022-38664 Cross-site Scripting in Jenkins Job Configuration History Plugin

Medium 5.4 Published Updated

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.

PackageAffectedFixed in
org.jenkins-ci.plugins:jobConfigHistory MavenAll versions1166.vc9f255f45b
org.jenkins-ci.plugins:jobConfigHistory MavenAll versions1166.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.

Sources

Also known as GHSA-28w4-h56g-grg7.

Is CVE-2022-38664 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free