CVE-2021-45721 Cross-site scripting in JFrog Artifactory
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.
| Package | Affected | Fixed in |
|---|---|---|
artifactory Bitnami | From 6.0.0 | 6.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.
Other vulnerabilities in Jfrog Artifactory
- CVE-2026-82329 JFrog Artifactory Improper Authentication
- CVE-2026-42016 JFrog Artifactory Incorrect Authorization
- CVE-2026-42018 JFrog Artifactory Improper Authentication
- CVE-2026-66384 JFrog Artifactory Improper Limitation of a Pathname to a Restricted Directory
- CVE-2019-17444 JFrog Artifactory does not enforce default admin password change
Sources
Also known as BIT-artifactory-2021-45721, GHSA-mxq8-5vwv-h9rj.