CVE-2019-10395 Jenkins Build Environment Plugin vulnerable to Cross-site Scripting

Medium 5.4 Published Updated

Cross-site scripting in Jenkins Build Environment Plugin allows attackers to execute scripts via unescaped variables in job views.

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-2019-10395?

CVE-2019-10395 is a medium-severity cross-site scripting vulnerability in Jenkins Build Environment Plugin, published on 12 Sep 2019. 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 Build Environment Plugin 1.6 and earlier did not escape variables shown on its views, resulting in a cross-site scripting vulnerability in Jenkins 2.145, 2.138.1, or older, exploitable by users able to change various job/build properties.

Weakness: CWE-79

Which versions are affected by CVE-2019-10395?

2 open source packages ship an affected version, including org.jenkins-ci.plugins:build-environment. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:build-environment MavenAll versions1.7
org.jenkins-ci.plugins:build-environment MavenAll versions1.7

Products include Jenkins Build Environment.

How do I fix CVE-2019-10395?

Upgrade org.jenkins-ci.plugins:build-environment to 1.7 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-10395 being exploited?

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

Sources

Also known as GHSA-88qj-3q6h-8m5q.

Is CVE-2019-10395 in your software?

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

Check your SBOMs for free