CVE-2021-21666 Cross-site scripting in Jenkins Kiuwan Plugin

Medium 6.1 Published Updated

Reflected XSS in Jenkins Kiuwan Plugin allows attackers to execute arbitrary scripts in victim browsers via unescaped query parameters.

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-2021-21666?

CVE-2021-21666 is a medium-severity cross-site scripting vulnerability in Jenkins Kiuwan Plugin, published on 10 Jun 2021. 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

Jenkins Kiuwan Plugin 1.6.0 and earlier does not escape query parameters in an error message for a form validation endpoint, resulting in a reflected cross-site scripting (XSS) vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2021-21666?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:kiuwanJenkinsPlugin MavenAll versions1.6.1
org.jenkins-ci.plugins:kiuwanJenkinsPlugin MavenAll versions1.6.1

Products include Jenkins Kiuwan.

How do I fix CVE-2021-21666?

Upgrade org.jenkins-ci.plugins:kiuwanJenkinsPlugin to 1.6.1 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-2021-21666 being exploited?

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

Sources

Also known as GHSA-8h77-3xwr-hqhh.

Is CVE-2021-21666 in your software?

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

Check your SBOMs for free