CVE-2022-0220
JSON

6.1medium

WordPress GDPR & CCPA < 1.9.27 - Unauthenticated Reflected Cross-Site Scripting

Severity
6.1medium CVSS:3.1 by NVD
Exploit likelihood
2.36% (higher than 84% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
WPScan

Description

The check_privacy_settings AJAX action of the WordPress GDPR WordPress plugin before 1.9.27, available to both unauthenticated and authenticated users, responds with JSON data without an "application/json" content-type. Since an HTML payload isn't properly escaped, it may be interpreted by a web browser led to this endpoint. Javascript code may be executed on a victim's browser. Due to v1.9.26 adding a CSRF check, the XSS is only exploitable against unauthenticated users (as they all share the same nonce)

Affected

Product or packageVersionsReported by
Unknown WordPress GDPRbefore 1.9.27CVE List
welaunch wordpress_gdpr&ccpaup to 1.9.26NVD

All scores

NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:N

Classification

What each source says

CVE List

The check_privacy_settings AJAX action of the WordPress GDPR WordPress plugin before 1.9.27, available to both unauthenticated and authenticated users, responds with JSON data without an "application/json" content-type. Since an HTML payload isn't properly escaped, it may be interpreted by a web browser led to this endpoint. Javascript code may be executed on a victim's browser. Due to v1.9.26 adding a CSRF check, the XSS is only exploitable against unauthenticated users (as they all share the same nonce)

NVD (es)

La acción check_privacy_settings AJAX del plugin GDPR de WordPress versiones anteriores a 1.9.27, disponible tanto para usuarios no autenticados como autenticados, responde con datos JSON sin un tipo de contenido "application/json". Como la carga útil HTML no es escapada correctamente, puede ser interpretada por un navegador web que conlleve a este endpoint. El código Javascript puede ser ejecutado en el navegador de la víctima. Debido a que la versión v1.9.26 añade una comprobación de tipo CSRF, un ataque de tipo XSS sólo es explotable contra usuarios no autenticados (ya que todos comparten el mismo nonce)

References

https://wpscan.com/vulnerability/a91a01b9-7e36-4280-bc50-f6cff3e66059exploit, technical-description, third-party-advisory, vdb-entry

Sources

SourceRecordLicence
CVE ListCVE-2022-0220 changed 2024-08-02CVE Terms of Use
NVDCVE-2022-0220 changed 2026-06-17Public domain