CVE-2021-21668 Stored XSS vulnerability in Jenkins Scriptler Plugin

Medium 5.4 Published Updated

Stored XSS in Jenkins Scriptler Plugin allows attackers with configure permissions to execute scripts in victim 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-2021-21668?

CVE-2021-21668 is a medium-severity cross-site scripting vulnerability in Jenkins Scriptler Plugin, published on 16 Jun 2021. 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 Scriptler Plugin 3.1 and earlier does not escape script content, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Scriptler/Configure permission.

Weakness: CWE-79

Which versions are affected by CVE-2021-21668?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:scriptler MavenAll versions3.2
org.jenkins-ci.plugins:scriptler MavenAll versions3.2

Products include Jenkins Scriptler.

How do I fix CVE-2021-21668?

Upgrade org.jenkins-ci.plugins:scriptler to 3.2 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-21668 being exploited?

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

Sources

Also known as GHSA-5c6c-w4c4-vgvx.

Is CVE-2021-21668 in your software?

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

Check your SBOMs for free