CVE-2022-28133 Stored XSS vulnerability in Jenkins Bitbucket Server Integration Plugin

Medium 5.4 Published Updated

Attackers with BitBucket consumer creation rights can inject malicious scripts via OAuth callback URLs, leading to stored XSS in Jenkins.

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-28133?

CVE-2022-28133 is a medium-severity cross-site scripting vulnerability in Jenkins Bitbucket Server Integration Plugin, published on 29 Mar 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 Bitbucket Server Integration Plugin 3.1.0 and earlier does not limit URL schemes for callback URLs on OAuth consumers, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to create BitBucket Server consumers.

Weakness: CWE-79

Which versions are affected by CVE-2022-28133?

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

PackageAffectedFixed in
io.jenkins.plugins:atlassian-bitbucket-server-integration MavenFrom 2.0.03.2.0
io.jenkins.plugins:atlassian-bitbucket-server-integration MavenFrom 2.0.03.2.0

Products include Jenkins Bitbucket Server Integration.

How do I fix CVE-2022-28133?

Upgrade io.jenkins.plugins:atlassian-bitbucket-server-integration to 3.2.0 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-28133 being exploited?

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

Sources

Also known as GHSA-45v7-65q8-x294.

Is CVE-2022-28133 in your software?

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

Check your SBOMs for free