CVE-2022-21149
PHP vulnerability analysis and mitigation

Overview

The vulnerability CVE-2022-21149 affects the packages s-cart/s-cart and s-cart/core before version 6.9. It is a Cross-site Scripting (XSS) vulnerability that was discovered on February 1, 2022, and publicly disclosed on April 26, 2022. The vulnerability allows attackers to steal cookies from victims who visit affected URLs, potentially leading to unauthorized access to user accounts (Snyk Advisory, NVD).

Technical details

The vulnerability exists in the user permission management functionality of the admin panel. It can be exploited when an attacker injects malicious payload in the Name field while editing roles. The XSS payload gets triggered when users visit specific admin panel URLs including /scadmin/user, /scadmin/role, /scadmin/permission, and /scadmin/checkip. The vulnerability has been assigned a CVSS v3.1 base score of 5.4 (Medium) by Snyk and 3.5 (Low) by NVD, with attack vector being Network, attack complexity Low, and requiring user interaction (Snyk Advisory).

Impact

Successful exploitation of this vulnerability can lead to cookie theft, allowing attackers to hijack user sessions and gain unauthorized access to victim accounts. This could potentially give attackers access to administrative functions and sensitive data within the application (Snyk Advisory).

Mitigation and workarounds

The recommended mitigation is to upgrade s-cart/s-cart and s-cart/core packages to version 6.9 or higher. Until the upgrade can be performed, it's advisable to implement proper input validation and sanitization, especially for administrative functions (Snyk Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65346CRITICAL9.1
  • PHPPHP
  • alexusmai/laravel-file-manager
NoNoDec 04, 2025
CVE-2025-66468HIGH7.6
  • PHPPHP
  • aimeos/ai-cms-grapesjs
NoYesDec 02, 2025
CVE-2025-65345MEDIUM6.5
  • PHPPHP
  • alexusmai/laravel-file-manager
NoNoDec 03, 2025
CVE-2025-65657MEDIUM6.5
  • PHPPHP
  • feehi/cms
NoNoDec 02, 2025
CVE-2025-65186MEDIUM6.1
  • PHPPHP
  • getgrav/grav
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management