CVE-2019-1003023 XSS vulnerability in Jenkins Warnings Next Generation Plugin

Medium 6.1 Published Updated

Attackers controlling parser input can inject arbitrary HTML into Jenkins, potentially leading to session hijacking or malicious script execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2019-1003023?

CVE-2019-1003023 is a medium-severity cross-site scripting vulnerability in Jenkins Warnings Next Generation Plugin, published on 6 Feb 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A cross-site scripting vulnerability exists in Jenkins Warnings Next Generation Plugin 1.0.1 and earlier in src/main/java/io/jenkins/plugins/analysis/core/model/DetailsTableModel.java, src/main/java/io/jenkins/plugins/analysis/core/model/SourceDetail.java, src/main/java/io/jenkins/plugins/analysis/core/model/SourcePrinter.java, src/main/java/io/jenkins/plugins/analysis/core/util/Sanitizer.java, src/main/java/io/jenkins/plugins/analysis/warnings/DuplicateCodeScanner.java that allows attackers with the ability to control warnings parser input to have Jenkins render arbitrary HTML.

Weakness: CWE-79

Which versions are affected by CVE-2019-1003023?

2 open source packages ship an affected version, including io.jenkins.plugins:warnings-ng. It affects 1 product.

PackageAffectedFixed in
io.jenkins.plugins:warnings-ng MavenAll versions2.0.0
io.jenkins.plugins:warnings-ng MavenAll versions2.0.0

Products include Jenkins Warnings Next Generation.

How do I fix CVE-2019-1003023?

Upgrade io.jenkins.plugins:warnings-ng to 2.0.0 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-2019-1003023 being exploited?

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

Sources

Also known as GHSA-cqp7-hwm3-cfg7.

Is CVE-2019-1003023 in your software?

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

Check your SBOMs for free