CVE-2018-1000202 Jenkins Groovy Postbuild Plugin vulnerable to Cross-site Scripting

Medium 5.4 Published Updated

Attackers controlling build badges can inject JavaScript executed in other users' browsers via the Jenkins Groovy Postbuild Plugin.

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-2018-1000202?

CVE-2018-1000202 is a medium-severity cross-site scripting vulnerability in n/a, published on 5 Jun 2018. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A persisted cross-site scripting vulnerability exists in Jenkins Groovy Postbuild Plugin 2.3.1 and older in various Jelly files that allows attackers able to control build badge content to define JavaScript that would be executed in another user's browser when that other user performs some UI actions.

Weakness: CWE-79

Which versions are affected by CVE-2018-1000202?

2 open source packages ship an affected version, including org.jvnet.hudson.plugins:groovy-postbuild. It affects 1 product.

PackageAffectedFixed in
org.jvnet.hudson.plugins:groovy-postbuild MavenAll versions2.4
org.jvnet.hudson.plugins:groovy-postbuild MavenAll versions2.4

Products include Jenkins Groovy Postbuild.

How do I fix CVE-2018-1000202?

Upgrade org.jvnet.hudson.plugins:groovy-postbuild to 2.4 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-2018-1000202 being exploited?

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

Sources

Also known as GHSA-38ch-x695-m794.

Is CVE-2018-1000202 in your software?

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

Check your SBOMs for free