CVE-2021-24940: WordPress Persian Woocommerce - Stored XSS
- Cve: CVE-2021-24940
- Name: WordPress Persian Woocommerce - Stored XSS
- Description: The Persian Woocommerce WordPress plugin through 5.8.0 does not escape the s parameter before outputting it back in an attribute in the admin dashboard, which could lead to a Reflected Cross-Site Scripting issue
- Impact: Attackers can execute scripts in the victim's browser, potentially stealing cookies and hijacking sessions.
- Remediation: Update to the latest version of the plugin where the vulnerability is fixed.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01439
- Epss percentile: 0.73863
- Assignee: [email protected]
- Published at: 2022-03-14T15:15:08Z
- Age in days: 1716
- Modified at: 2026-06-17T03:41:10Z
- Public exploits total: 1
- References total: 2
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-24940
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2021-24940 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24940.yaml |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://wpscan.com/vulnerability/1980c5ca-447d-4875-b542-9212cc7ff77f | nvd | 2022-03-14 |
References
| Url | Source | Tags |
|---|---|---|
| https://wpscan.com/vulnerability/1980c5ca-447d-4875-b542-9212cc7ff77f | nvd | Exploit, Third Party Advisory |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24940.yaml | nuclei_template | Nuclei Template |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| woocommerce:persian-woocommerce | <= 5.8.0 | no | nvd | /v1/products/woocommerce/persian-woocommerce |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-03-14
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, initial access since, hackerone reports, exposed hosts