CVE-2024-39400
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedAdobe Commerce versions 2.4.7-p1, 2.4.6-p6, 2.4.5-p8, 2.4.4-p9 and earlier are affected by a DOM-based Cross-Site Scripting (XSS) vulnerability. This vulnerability could allow an admin attacker to inject and execute arbitrary JavaScript code within the context of the user's browser session. Exploitation of this issue requires user interaction, such as convincing a victim to click on a malicious link. Confidentiality and integrity impact is high as it affects other admin accounts.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceAdobe Commerce versions 2.4.4-p9 through 2.4.7-p1 contain a DOM-based Cross-Site Scripting (XSS) vulnerability allowing an authenticated admin attacker to inject malicious JavaScript through a specific endpoint that is reflected in the browser's DOM without proper sanitization. Successful exploitation enables session hijacking of other admin users who click the crafted malicious link.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data<= 2.4.3= 2.4.4= 2.4.5= 2.4.6= 2.4.7<= 2.4.3= 2.4.4= 2.4.5= 2.4.6= 2.4.7CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- High
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed Adobe Commerce or Magento versionRun the CLI command 'php bin/magento --version' or check the composer.json file in the Magento root directory for the version attributeAffected if The installed version is 2.4.4, 2.4.5, 2.4.6, or 2.4.7 (including any patch versions within these releases) or is 2.4.3 or lower
-
Confirm admin panel access is enabledCheck the app/etc/env.php file for admin URL path and verify the admin panel is accessible over the networkAffected if The admin panel is exposed and accessible to network attackers
-
Locate the vulnerable endpoint parameterReview admin-facing controllers and templates for parameters that are reflected in the browser DOM without encoding. Examine response headers and HTML source for user-supplied input that is directly inserted into page outputAffected if A parameter in an admin endpoint accepts user input and reflects it directly into the DOM without proper sanitization
-
Verify patch application statusSearch the codebase for the security patch file or check if the specific fix for CVE-2024-39400 has been applied to the vulnerable template/controller fileAffected if The patch has not been applied and the vulnerable endpoint parameter is found to be reflected without output encoding
You are affected if your Adobe Commerce or Magento installation runs version 2.4.4 through 2.4.7 and an unauthenticated or authenticated admin user can access an endpoint that reflects input into the DOM without output encoding.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedApply the vendor-supplied security patch for CVE-2024-39400 which implements proper output encoding on the vulnerable parameter to prevent script injection. Verify no other similar DOM XSS vectors exist in admin-facing code.
Adobe Commerce 2.4.7-p1 (or minimum patched version per your branch: 2.4.4-p9, 2.4.5-p8, or 2.4.6-p6)
- 1. Identify your current Adobe Commerce/Magento version in the admin panel under System > Configuration > General > Advanced > Admin or by running: bin/magento --version
- 2. Determine the appropriate target version based on your current installation: if on <=2.4.3 or 2.4.4, upgrade to 2.4.7-p1 (recommended) or minimum 2.4.4-p9; if on 2.4.5, upgrade to minimum 2.4.5-p8; if on 2.4.6, upgrade to minimum 2.4.6-p6
- 3. Create a complete backup of the database and file system before upgrading
- 4. Put the store in maintenance mode: bin/magento maintenance:enable
- 5. Upgrade using Composer: composer require magento/product-community-edition=2.4.7-p1 --no-update, then composer update
- 6. Clear caches: bin/magento cache:flush
- 7. Run the upgrade scripts: bin/magento setup:upgrade
- 8. Recompile the di configuration if in production mode: bin/magento setup:di:compile
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing2.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,848.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2024-39400 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2024-39400 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data