CVE-2022-25191 Stored Cross-site Scripting vulnerability in Jenkins Agent Server Parameter Plugin

Medium 5.4 Published Updated

Stored XSS in Jenkins Agent Server Parameter 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-2022-25191?

CVE-2022-25191 is a medium-severity cross-site scripting vulnerability in Jenkins Agent Server Parameter Plugin, published on 15 Feb 2022. 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 Agent Server Parameter Plugin 1.0 and earlier does not escape parameter names of agent server parameters, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Item/Configure permission.

Weakness: CWE-79

Which versions are affected by CVE-2022-25191?

2 open source packages ship an affected version, including io.jenkins.plugins:agent-server-parameter. It affects 1 product.

PackageAffectedFixed in
io.jenkins.plugins:agent-server-parameter MavenAll versions1.1
io.jenkins.plugins:agent-server-parameter MavenAll versions1.1

Products include Jenkins Agent Server Parameter.

How do I fix CVE-2022-25191?

Upgrade io.jenkins.plugins:agent-server-parameter to 1.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-2022-25191 being exploited?

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

Sources

Also known as GHSA-53c4-cmhf-gp7w.

Is CVE-2022-25191 in your software?

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

Check your SBOMs for free