{"answers":{"affected":"1 open source package ship an affected version, including artifactory. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-45721 in the wild and no public exploit code.","fix":"Upgrade artifactory to a fixed version for your release line: 6.23.38 or 7.29.8.","what":"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."},"fix_prompt":"Check this codebase for CVE-2021-45721 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2021-45721 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- artifactory (Bitnami): affected from 6.0.0; fixed in 6.23.38, 7.29.8\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-45721/ (Markdown: https://insights.sbomify.com/CVE-2021-45721/index.md)","id":"CVE-2021-45721","markdown":"https://insights.sbomify.com/CVE-2021-45721/index.md","name":"CVE-2021-45721","record":{"aliases":["BIT-artifactory-2021-45721","GHSA-mxq8-5vwv-h9rj"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"JFrog Artifactory","requires_auth":"high_privilege","summary":"Reflected XSS in JFrog Artifactory Users REST API allows attackers to execute scripts in victim browsers, potentially leading to session hijacking or account takeover.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"JFROG","cpe":[{"product":"artifactory","vendor":"jfrog"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Cross-site scripting in JFrog Artifactory","id":"CVE-2021-45721","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"jfrog:artifactory","products":["jfrog:artifactory"],"type":"xss","year":"2021"},"n_packages":1,"n_references":2,"next":{"headline":"WordPress WP Google Map plugin \u003c= 1.8.0 - Privilege Escalation vulnerability","id":"CVE-2021-45729"},"packages":[{"ecosystem":"Bitnami","fixed":["6.23.38","7.29.8"],"introduced":["6.0.0","7.0.0"],"last_affected":[],"package":"artifactory","purl":"pkg:bitnami/artifactory","source":"BIT-artifactory-2021-45721"}],"prev":{"headline":"Use after free in lru crate","id":"CVE-2021-45720"},"products":["JFrog Artifactory"],"published":"2022-07-06","related":[{"cvss_score":9.8,"headline":"JFrog Artifactory Improper Authentication","id":"CVE-2026-82329","kev_date_added":"2026-09-02","published":"2026-08-28"},{"cvss_score":8.1,"headline":"JFrog Artifactory Incorrect Authorization","id":"CVE-2026-42016","kev_date_added":"2026-09-11","published":"2026-07-27"},{"cvss_score":7.5,"headline":"JFrog Artifactory Improper Authentication","id":"CVE-2026-42018","kev_date_added":"2026-09-11","published":"2026-08-12"},{"cvss_score":5.3,"headline":"JFrog Artifactory Improper Limitation of a Pathname to a Restricted Directory","id":"CVE-2026-66384","kev_date_added":"2026-08-27","published":"2026-08-12"},{"cvss_score":9.8,"headline":"JFrog Artifactory does not enforce default admin password change","id":"CVE-2019-17444","kev_date_added":null,"published":"2020-10-12"},{"cvss_score":9.8,"headline":"Missing authorization in n/a","id":"CVE-2018-19971","kev_date_added":null,"published":"2019-04-16"},{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2019-9733","kev_date_added":null,"published":"2019-04-11"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["JFrog"]},"summary":"Reflected XSS in JFrog Artifactory Users REST API allows attackers to execute scripts in victim browsers, potentially leading to session hijacking or account takeover.","url":"https://insights.sbomify.com/CVE-2021-45721/"}