GHSA-gp6m-fq6h-cjcx: Magento LTS vulnerable to stored XSS in admin file form
Summary OpenMage is affected by a stored Cross-Site Scripting (XSS) vulnerability that could be abused by a low-privileged attacker to inject malicious scripts into vulnerable form fields. Details MageAdminhtmlBlockSystemConfigFormFieldFile does not escape filename value in certain situations. Same as: https://nvd.nist.gov/vuln/detail/CVE-2024-20717 PoC 1. Create empty file with this filename: .crt 2.
Published Feb 27, 2024 · Updated Mar 24, 2026
Affected packages
openmage/magento-lts
- Ecosystem
- Composer (PHP)
- Affected
- >= 20.0.0, < 20.5.0
- Fixed in
- 20.5.0
- Check
composer show openmage/magento-lts
openmage/magento-lts
- Ecosystem
- Composer (PHP)
- Affected
- < 19.5.3
- Fixed in
- 19.5.3
- Check
composer show openmage/magento-lts
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
OpenMage is affected by a stored Cross-Site Scripting (XSS) vulnerability that could be abused by a low-privileged attacker to inject malicious scripts into vulnerable form fields.
Details
Mage_Adminhtml_Block_System_Config_Form_Field_File does not escape filename value in certain situations. Same as: https://nvd.nist.gov/vuln/detail/CVE-2024-20717
PoC
- Create empty file with this filename:
.crt - Go to _System_ > _Configuration_ > _Sales | Payment Methonds_.
- Click Configure on _PayPal Express Checkout_.
- Choose API Certificate from dropdown _API Authentication Methods_.
- Choose the XSS-file and click Save Config.
- Profit, alerts "1" -> XSS.
- Reload, alerts "1" -> Stored XSS.
Impact
Affects admins that have access to any fileupload field in admin in core or custom implementations. Malicious JavaScript may be executed in a victim’s browser when they browse to the page containing the vulnerable field.
Credited to Judx.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-42458
Magento LTS: Reflected XSS - Import -> Data Flow (profiles)
medium5.3May 6, 2026CVE-2026-42155
Magento LTS has Weak API Session ID — Predictable MD5 of Time-Derived Inputs
critical9.3May 5, 2026CVE-2026-42207
Magento LTS Vulnerable to Open Redirect via Unvalidated `uenc` Parameter in `stockAction()`
medium6.1May 5, 2026CVE-2026-25524
OpenMage LTS: Phar Deserialization leads to Remote Code Execution
high8.1Apr 21, 2026CVE-2026-25525
OpenMage LTS has a Path Traversal Filter Bypass in Dataflow Module
medium4.9Apr 21, 2026CVE-2026-40098
OpenMage LTS: Cross-user wishlist import leads to private option & file disclosure
medium5.4Apr 21, 2026
