CVE-2020-2122 Stored XSS vulnerability in Jenkins brakeman Plugin

Medium 5.4 Published Updated

Stored XSS in Jenkins Brakeman Plugin allows attackers controlling build inputs to execute scripts in other users' browsers.

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-2020-2122?

CVE-2020-2122 is a medium-severity cross-site scripting vulnerability in Jenkins Brakeman Plugin, published on 12 Feb 2020. 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 Brakeman Plugin 0.12 and earlier did not escape values received from parsed JSON files when rendering them, resulting in a stored cross-site scripting vulnerability exploitable by users able to control the Brakeman post-build step input data.

Weakness: CWE-79

Which versions are affected by CVE-2020-2122?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:brakeman MavenAll versions0.13
org.jenkins-ci.plugins:brakeman MavenAll versions0.13

Products include Jenkins Brakeman.

How do I fix CVE-2020-2122?

Upgrade org.jenkins-ci.plugins:brakeman to 0.13 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-2020-2122 being exploited?

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

Sources

Also known as GHSA-7q9r-vhg2-789w.

Is CVE-2020-2122 in your software?

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

Check your SBOMs for free