CVE-2022-36922 Jenkins Lucene-Search Plugin vulnerable to reflected (XSS) cross-site scripting

Medium 6.1 Published Updated

Reflected XSS in Jenkins Lucene-Search Plugin allows attackers to execute arbitrary scripts in victim browsers via unescaped search queries.

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-2022-36922?

CVE-2022-36922 is a medium-severity cross-site scripting vulnerability in Jenkins Lucene-Search Plugin, published on 27 Jul 2022. 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 Lucene-Search Plugin 370.v62a5f618cd3a and earlier does not escape the search query parameter displayed on the 'search' result page, resulting in a reflected cross-site scripting (XSS) vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2022-36922?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:lucene-search MavenAll versions387.v938a
org.jenkins-ci.plugins:lucene-search MavenAll versions387.v938a

Products include Jenkins Lucene-Search.

How do I fix CVE-2022-36922?

Upgrade org.jenkins-ci.plugins:lucene-search to 387.v938a 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-36922 being exploited?

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

Sources

Also known as GHSA-6954-h5c8-m29f.

Is CVE-2022-36922 in your software?

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

Check your SBOMs for free