CVE-2022-21149 Cross-site Scripting (XSS)
Attackers can steal victim cookies via XSS to gain unauthorized account access in the S-Cart e-commerce platform.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-21149?
CVE-2022-21149 is a medium-severity cross-site scripting vulnerability in s-cart/core, published on 1 May 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The package s-cart/s-cart before 6.9; the package s-cart/core before 6.9 are vulnerable to Cross-site Scripting (XSS) which can lead to cookie stealing of any victim that visits the affected URL so the attacker can gain unauthorized access to that user's account through the stolen cookie.
Weakness: CWE-79
Which versions are affected by CVE-2022-21149?
4 open source packages ship an affected version, including s-cart/core and s-cart/s-cart. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
s-cart/core Packagist | All versions | 6.9 |
s-cart/core Packagist | All versions | 6.9 |
s-cart/s-cart Packagist | All versions | 6.9 |
s-cart/s-cart Packagist | All versions | 6.9 |
Products include S-Cart S-Cart.
How do I fix CVE-2022-21149?
Upgrade s-cart/core to 6.9 or later.
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-2022-21149 being exploited?
There is no known exploitation of CVE-2022-21149 in the wild and no public exploit code.
Other vulnerabilities in s-cart/core
Sources
Also known as GHSA-7pfc-cx3m-v22x.