CVE-2023-41931 XSS vulnerability in Jenkins Job Configuration History Plugin

Medium 5.4 Published Updated

Stored XSS in Jenkins Job Configuration History Plugin allows attackers to execute scripts in victim browsers via unsanitized timestamps.

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-2023-41931?

CVE-2023-41931 is a medium-severity cross-site scripting vulnerability in Jenkins Job Configuration History Plugin, published on 6 Sep 2023. 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 1227.v7a_79fc4dc01f and earlier does not property sanitize or escape the timestamp value from history entries when rendering a history entry on the history view, resulting in a stored cross-site scripting (XSS) vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2023-41931?

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 versions1229.v3039470161a_d
org.jenkins-ci.plugins:jobConfigHistory MavenAll versions1229.v3039470161a_d

Products include Jenkins Job Configuration History.

How do I fix CVE-2023-41931?

Upgrade org.jenkins-ci.plugins:jobConfigHistory to 1229.v3039470161a_d 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-2023-41931 being exploited?

There is no known exploitation of CVE-2023-41931 in the wild and no public exploit code.

Sources

Also known as GHSA-5jxp-f5rr-g6jc.

Is CVE-2023-41931 in your software?

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

Check your SBOMs for free