CVE-2021-45721 Cross-site scripting in JFrog Artifactory

Medium 6.1 Published Updated

Reflected XSS in JFrog Artifactory Users REST API allows attackers to execute scripts in victim browsers, potentially leading to session hijacking or account takeover.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-45721?

CVE-2021-45721 is a medium-severity cross-site scripting vulnerability in Jfrog Artifactory, published on 6 Jul 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

JFrog Artifactory prior to version 7.29.8 and 6.23.38 is vulnerable to Reflected Cross-Site Scripting (XSS) through one of the XHR parameters in Users REST API endpoint. This issue affects: JFrog JFrog Artifactory JFrog Artifactory versions before 7.36.1 versions prior to 7.29.8; JFrog Artifactory versions before 6.23.41 versions prior to 6.23.38.

Weakness: CWE-79

Which versions are affected by CVE-2021-45721?

1 open source package ship an affected version, including artifactory. It affects 1 product.

PackageAffectedFixed in
artifactory BitnamiFrom 6.0.06.23.38, 7.29.8

Products include Jfrog Artifactory.

How do I fix CVE-2021-45721?

Upgrade artifactory to a fixed version for your release line: 6.23.38 or 7.29.8.

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-45721 being exploited?

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

All Jfrog Artifactory vulnerabilities

Sources

Also known as BIT-artifactory-2021-45721, GHSA-mxq8-5vwv-h9rj.

Is CVE-2021-45721 in your software?

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

Check your SBOMs for free