Skip to main content

CVE-2024-2247: JFrog Artifactory XSS Vulnerability

CVE-2024-2247 is a DOM-based cross-site scripting vulnerability in JFrog Artifactory affecting versions below 7.77.7 and 7.82.1. This article covers technical details, affected versions, security impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-2247 Overview

CVE-2024-2247 is a DOM-based cross-site scripting (XSS) vulnerability in JFrog Artifactory. The flaw stems from improper handling of the import override mechanism in the product's web interface. An attacker can craft a malicious link that, when loaded by an authenticated user, executes arbitrary JavaScript in the victim's browser session [CWE-79].

The vulnerability affects JFrog Artifactory versions below 7.77.7 and below 7.82.1. Exploitation requires user interaction, which limits automated attack scenarios but enables targeted phishing against repository administrators.

Critical Impact

Successful exploitation allows execution of attacker-controlled scripts in the context of an authenticated Artifactory user, enabling session abuse, UI manipulation, and theft of repository data.

Affected Products

  • JFrog Artifactory versions below 7.77.7
  • JFrog Artifactory versions below 7.82.1
  • Self-hosted and on-premise Artifactory deployments

Discovery Timeline

  • 2024-03-13 - CVE-2024-2247 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-2247

Vulnerability Analysis

The vulnerability resides in the import override feature of JFrog Artifactory. Client-side JavaScript processes user-controlled input from the Document Object Model (DOM) without sufficient sanitization or output encoding. When the vulnerable code path renders this input, the browser interprets attacker-supplied markup as executable script.

Because the injection occurs entirely in the browser, the malicious payload typically travels through a URL fragment or parameter and never reaches server logs. This client-side execution path makes the issue harder to detect through traditional server-side monitoring.

Root Cause

The root cause is improper neutralization of input during web page generation in the import override mechanism. The affected JavaScript handler writes untrusted data into the DOM using a sink that permits HTML parsing instead of safe text insertion. No contextual output encoding or allow-list filtering is applied before rendering.

Attack Vector

An attacker crafts a URL containing a JavaScript payload targeting the vulnerable import override functionality. The attacker then delivers the link through phishing, instant messaging, or a watering-hole page. When an authenticated Artifactory user clicks the link, the payload executes under the origin of the Artifactory web application.

The scope-changed CVSS vector indicates that the injected script can affect resources beyond the vulnerable component. Attackers can use the script to issue API calls on behalf of the victim, exfiltrate build artifacts, modify repository configurations, or pivot to CI/CD pipelines connected to Artifactory.

No verified public proof-of-concept code is available at this time. Refer to the JFrog Security Advisories for additional technical context.

Detection Methods for CVE-2024-2247

Indicators of Compromise

  • Unexpected outbound requests from browsers to attacker-controlled domains following clicks on Artifactory URLs
  • Artifactory audit log entries showing repository or permission changes initiated through legitimate user sessions but outside normal working patterns
  • HTTP requests to Artifactory containing <script>, javascript:, onerror=, or URL-encoded script fragments in query strings or fragments targeting import endpoints

Detection Strategies

  • Inspect web proxy and WAF logs for requests to Artifactory URLs containing script-like payloads in parameters associated with the import override feature
  • Correlate authentication events with administrative API calls to identify session misuse indicative of XSS-driven actions
  • Review browser Content Security Policy (CSP) violation reports from users accessing the Artifactory console

Monitoring Recommendations

  • Enable and ship Artifactory access and request logs to a centralized analytics platform for anomaly identification
  • Monitor for new or modified repository configurations, tokens, and permission targets outside change-control windows
  • Alert on authenticated API calls originating from unusual user-agent strings or geographic locations

How to Mitigate CVE-2024-2247

Immediate Actions Required

  • Upgrade JFrog Artifactory to version 7.77.7, 7.82.1, or later as released by the vendor
  • Audit administrative accounts and rotate access tokens that may have been exposed through browser sessions
  • Instruct administrators to avoid clicking Artifactory links received through untrusted channels until patching is complete

Patch Information

JFrog has released fixed versions 7.77.7 and 7.82.1 that address the improper handling in the import override mechanism. Review the JFrog Security Advisories page for exact fix versions matching your deployment track and apply the appropriate upgrade through your standard change-management process.

Workarounds

  • Restrict access to the Artifactory web console to trusted networks using firewall rules or a reverse proxy allow-list
  • Enforce a strict Content Security Policy at the reverse proxy to limit inline script execution and restrict script sources
  • Require short-lived sessions and re-authentication for administrative actions to reduce the window for session abuse
bash
# Example: enforce a restrictive Content-Security-Policy header
# at an NGINX reverse proxy fronting Artifactory
add_header Content-Security-Policy "default-src 'self'; \
    script-src 'self'; \
    object-src 'none'; \
    frame-ancestors 'none'; \
    base-uri 'self'" always;

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.