Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2025-24415

CVE-2025-24415: Adobe Commerce Stored XSS Vulnerability

CVE-2025-24415 is a stored cross-site scripting vulnerability in Adobe Commerce that enables low-privileged attackers to inject malicious scripts into form fields, potentially leading to session takeover and data compromise.

Published:

CVE-2025-24415 Overview

CVE-2025-24415 is a stored Cross-Site Scripting (XSS) vulnerability affecting Adobe Commerce, Adobe Commerce B2B, and Magento Open Source. The flaw lets a low-privileged authenticated attacker inject malicious JavaScript into vulnerable form fields. The payload executes in a victim's browser when they visit the page containing the tainted field. Successful exploitation enables session takeover and account compromise. Adobe addressed the issue in security bulletin APSB25-08. The weakness is classified under [CWE-79] (Improper Neutralization of Input During Web Page Generation).

Critical Impact

An authenticated attacker with low privileges can store malicious JavaScript that executes in another user's browser, leading to session hijacking and unauthorized actions performed as the victim, including administrative users.

Affected Products

  • Adobe Commerce 2.4.8-beta1, 2.4.7-p3, 2.4.6-p8, 2.4.5-p10, 2.4.4-p11 and earlier
  • Adobe Commerce B2B 1.5.0, 1.4.2-p3, 1.3.5-p8, 1.3.4-p10, 1.3.3-p11 and earlier
  • Magento Open Source 2.4.8-beta1, 2.4.7-p3, 2.4.6-p8, 2.4.5-p10, 2.4.4-p11 and earlier

Discovery Timeline

  • 2025-02-11 - CVE-2025-24415 published to NVD
  • 2025-04-16 - Last updated in NVD database

Technical Details for CVE-2025-24415

Vulnerability Analysis

The flaw is a stored XSS issue in Adobe Commerce form-handling components. User-supplied input submitted into specific form fields is persisted without proper output encoding or sanitization. When another user, including a merchant administrator, later renders the page that displays the stored value, the browser executes the attacker-controlled script in the trusted origin of the storefront or admin panel.

Because the vulnerability requires authentication, the attacker must hold an account with low privileges, such as a customer or limited merchant role. User interaction is required from the victim, who must browse to the page containing the malicious field. The scope changes when executed, meaning the script can affect resources beyond the attacker's original authorization context.

Root Cause

The root cause is improper neutralization of input during web page generation, tracked as [CWE-79]. Adobe Commerce stores user-controlled data in form fields and renders that data into HTML responses without sufficient context-aware escaping. The rendering path does not enforce output encoding for HTML or JavaScript contexts, so attacker-supplied <script> tags or event handlers are interpreted as executable code rather than literal text.

Attack Vector

Exploitation occurs over the network against the Commerce application. The attacker authenticates with low-privileged credentials, then submits a crafted payload into a vulnerable form field. The payload is persisted server-side. When a privileged user later views the record containing the payload, the browser executes the JavaScript. The attacker can then exfiltrate session cookies, perform actions on behalf of the victim, or pivot toward administrative takeover of the Commerce instance.

No public proof-of-concept is documented in the referenced advisory, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. See the Adobe Magento Security Advisory APSB25-08 for vendor-confirmed technical details.

Detection Methods for CVE-2025-24415

Indicators of Compromise

  • Form field values in the Commerce database containing HTML tags such as <script>, <img onerror=>, or javascript: URIs.
  • Unexpected outbound HTTP requests from administrator browser sessions to attacker-controlled domains shortly after viewing customer or order records.
  • Admin user sessions used from unfamiliar IP addresses or geolocations following routine record review.
  • Newly created administrative accounts or modified role permissions without a corresponding change ticket.

Detection Strategies

  • Inspect Magento application logs and web server access logs for POST requests to form endpoints containing encoded script payloads or suspicious entity references.
  • Run database queries against customer, order, and CMS tables for stored values matching XSS payload patterns.
  • Deploy a Content Security Policy (CSP) in report-only mode to surface inline script execution attempts in admin and storefront contexts.

Monitoring Recommendations

  • Monitor admin panel access patterns for session reuse across disparate IPs, which can indicate cookie theft following XSS execution.
  • Alert on changes to administrator accounts, API tokens, and integration credentials in Commerce.
  • Forward web application firewall (WAF) and Commerce audit logs to a centralized SIEM for correlation with endpoint telemetry.

How to Mitigate CVE-2025-24415

Immediate Actions Required

  • Apply the Adobe security update referenced in APSB25-08 to all Commerce, Commerce B2B, and Magento Open Source instances.
  • Audit existing form-field data in customer, order, and catalog tables for previously injected payloads and remove any malicious content.
  • Rotate administrator session cookies, API keys, and integration tokens after patching to invalidate any credentials potentially captured via prior exploitation.
  • Review administrator account inventory and remove unused or unauthorized accounts.

Patch Information

Adobe released fixed versions on February 11, 2025, covering Adobe Commerce, Adobe Commerce B2B, and Magento Open Source. Administrators should upgrade to the patched releases identified in Adobe Security Bulletin APSB25-08. Composer-based deployments should update the magento/product-community-edition or magento/product-enterprise-edition package to the corresponding patched version and clear caches.

Workarounds

  • Deploy a WAF rule set that filters HTML and JavaScript metacharacters in form submissions to Commerce endpoints until patching is complete.
  • Enforce a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins.
  • Restrict low-privileged account creation and require email verification to slow attacker access to authenticated form-submission paths.
bash
# Apply the Adobe Commerce security patch via Composer
composer require magento/product-community-edition:<patched-version> --no-update
composer update
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

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

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

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.