Skip to main content
Vulnerability Database/CVE-2024-45123

CVE-2024-45123: Adobe Commerce Reflected XSS Vulnerability

CVE-2024-45123 is a reflected cross-site scripting flaw in Adobe Commerce that allows attackers to execute malicious JavaScript in victim browsers. This post explains its impact, affected versions, 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-45123 Overview

CVE-2024-45123 is a reflected Cross-Site Scripting (XSS) vulnerability affecting Adobe Commerce, Adobe Commerce B2B, and Magento Open Source. The flaw exists in versions 2.4.7-p2, 2.4.6-p7, 2.4.5-p9, 2.4.4-p10, and earlier releases. An attacker who tricks an authenticated victim into visiting a crafted URL referencing a vulnerable page can execute arbitrary JavaScript in the victim's browser session. Successful exploitation allows session token theft, administrative action hijacking, or redirection to attacker-controlled infrastructure. The weakness is classified under CWE-79: Improper Neutralization of Input During Web Page Generation.

Critical Impact

Attackers can execute arbitrary JavaScript in a victim's browser context, potentially stealing session data or performing unauthorized actions in Commerce storefronts and administrative portals.

Affected Products

  • Adobe Commerce (versions 2.4.7-p2, 2.4.6-p7, 2.4.5-p9, 2.4.4-p10 and earlier)
  • Adobe Commerce B2B (versions 1.4.2-p2, 1.3.5-p7, 1.3.4-p9, 1.3.3-p10 and earlier)
  • Magento Open Source (equivalent 2.4.x branches)

Discovery Timeline

  • 2024-10-10 - CVE-2024-45123 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-45123

Vulnerability Analysis

The vulnerability stems from improper neutralization of user-controlled input reflected into HTTP responses. A vulnerable Commerce page accepts attacker-supplied parameters and returns them in the rendered HTML without adequate output encoding. When a victim loads the crafted URL, the browser parses the injected markup and executes attacker-controlled JavaScript within the trust context of the Commerce domain.

Because the scope changes during exploitation, injected scripts can affect browser resources beyond the originally vulnerable component, including cookies and DOM state belonging to adjacent application contexts. User interaction is required: the victim must click or load the malicious link.

Root Cause

The underlying defect is missing or insufficient output encoding on reflected request parameters. Input accepted through a URL parameter is incorporated into HTML output without context-aware escaping, allowing <script> tags or event-handler attributes to execute. This maps directly to CWE-79.

Attack Vector

Exploitation is network-based and requires no privileges, but does require user interaction. A typical attack chain involves the following steps:

  1. The attacker identifies a vulnerable Commerce endpoint that reflects a query parameter into the response.
  2. The attacker crafts a URL containing a JavaScript payload in the reflected parameter.
  3. The attacker delivers the URL through phishing, forum posts, or malicious advertisements.
  4. A logged-in Commerce user or administrator loads the URL.
  5. The payload executes in the victim's browser, enabling session theft, CSRF-style requests, or storefront defacement.

See the Adobe Security Advisory APSB24-73 for vendor technical details.

Detection Methods for CVE-2024-45123

Indicators of Compromise

  • HTTP request logs containing URL parameters with encoded or raw <script>, onerror=, onload=, or javascript: patterns targeting Commerce endpoints.
  • Outbound requests from administrator browsers to unexpected external hosts shortly after visiting Commerce admin URLs.
  • Admin session cookies appearing in referrer headers or external telemetry.

Detection Strategies

  • Deploy a web application firewall (WAF) ruleset that inspects query strings and POST bodies for reflected XSS payloads against Commerce URL paths.
  • Enable Content Security Policy (CSP) reporting and monitor report-uri endpoints for violation events indicating script injection attempts.
  • Correlate web server access logs with authentication and admin action logs to identify suspicious parameter contents preceding privileged actions.

Monitoring Recommendations

  • Alert on Commerce admin logins immediately followed by anomalous API calls or configuration changes from the same session.
  • Monitor for repeated 200-response requests to the same Commerce endpoint from varied referrers containing encoded script fragments.
  • Track browser-origin telemetry on administrator workstations for unexpected JavaScript errors or redirects originating from Commerce domains.

How to Mitigate CVE-2024-45123

Immediate Actions Required

  • Apply the Adobe security update referenced in APSB24-73 to all affected Commerce, Commerce B2B, and Magento Open Source installations.
  • Inventory all Commerce instances, including staging and development environments, and confirm patch status against the fixed version table in the advisory.
  • Rotate administrator session cookies and credentials if logs show suspicious URL parameters targeting admin endpoints prior to patching.

Patch Information

Adobe addressed CVE-2024-45123 in the October 2024 Commerce security release documented in APSB24-73. Operators running Adobe Commerce 2.4.7-p2, 2.4.6-p7, 2.4.5-p9, 2.4.4-p10, or earlier must upgrade to the corresponding fixed releases listed in the Adobe advisory. Adobe Commerce B2B deployments require the matching B2B patch level.

Workarounds

  • Enforce a restrictive Content Security Policy that disallows inline scripts and limits script sources to trusted origins.
  • Deploy WAF signatures that block common reflected XSS payload patterns on Commerce storefront and admin endpoints.
  • Restrict admin panel access by IP allowlist or VPN to reduce the attack surface for phishing-delivered XSS links until patching is complete.

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.