CVE-2021-21398 Possible XSS injection through DataColumn Grid class
Attackers can inject HTML via the DataColumn Grid class in PrestaShop, potentially leading to script execution or session hijacking.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-21398?
CVE-2021-21398 is a medium-severity cross-site scripting vulnerability in Prestashop Prestashop, published on 30 Mar 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
PrestaShop is a fully scalable open source e-commerce solution. In PrestaShop before version 1.7.7.3, an attacker can inject HTML when the Grid Column Type DataColumn is badly used. The problem is fixed in 1.7.7.3
Weakness: CWE-79
Which versions are affected by CVE-2021-21398?
It affects 1 product.
Products include Prestashop Prestashop.
How do I fix CVE-2021-21398?
No fix has been published for CVE-2021-21398 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-21398 being exploited?
There is no known exploitation of CVE-2021-21398 in the wild and no public exploit code.
Other vulnerabilities in Prestashop Prestashop
Sources
Also known as GHSA-fhhq-4x46-qx77.