CVE-2018-1000604 Jenkins Badge Plugin cross-site scripting vulnerability

Medium 5.4 Published Updated

Attackers can inject JavaScript into build badges, executing code in other users' browsers via Jenkins UI actions.

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-1000604?

CVE-2018-1000604 is a medium-severity cross-site scripting vulnerability in n/a, published on 26 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 Badge Plugin 1.4 and earlier in BadgeSummaryAction.java, HtmlBadgeAction.java 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-1000604?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:badge MavenAll versions1.5
org.jenkins-ci.plugins:badge MavenAll versions1.5

Products include Jenkins Badge.

How do I fix CVE-2018-1000604?

Upgrade org.jenkins-ci.plugins:badge to 1.5 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-1000604 being exploited?

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

Sources

Also known as GHSA-3xjq-8j89-xrw9.

Is CVE-2018-1000604 in your software?

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

Check your SBOMs for free