CVE-2022-21149 — core
MEDIUMCVE-2022-21149 is a medium-severity (CVSS 5.4) Cross-site Scripting (XSS) vulnerability in s-cart/core. A fix is available for s-cart/core — see the affected versions and patch details below.
Cross-site Scripting (XSS)
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
s-cart/core🐘s-cart/s-cartReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
SCart e-commerce is a free open source for businesses, built on the Laravel framework. The package s-cart/s-cart before 6.9 and 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. An attacker can gain unauthorized access to that user's account through the stolen cookie.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | s-cart/core | all versions | 6.9composer require s-cart/core:^6.9 |
| 🐘Packagist | s-cart/s-cart | all versions | 6.9composer require s-cart/s-cart:^6.9 |
Affected Products
s-carts-cartDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for s-cart/core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update s-cart/core to 6.9 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-21149 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is CVE-2022-21149 in your dependencies?
Find it across Packagist, including transitive dependencies.