CVE-2021-47957
Description
Cookie Law Bar 1.2.1 contains a stored cross-site scripting vulnerability that allows authenticated attackers to inject malicious scripts by submitting unsanitized input to the Bar Message field. Attackers can inject script payloads through the plugin settings page that execute in the browsers of all WordPress users viewing the site, enabling cookie theft and sensitive data exfiltration.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Cookie Law Bar 1.2.1 has a stored XSS vulnerability allowing authenticated attackers to inject scripts via the Bar Message field, affecting all site visitors.
Vulnerability
The Cookie Law Bar plugin for WordPress version 1.2.1 (and possibly earlier) contains a stored cross-site scripting vulnerability in the "Bar Message" field on the plugin settings page. The plugin fails to sanitize user input before saving it, allowing injection of arbitrary HTML/JavaScript. [2][3][4]
Exploitation
An attacker must be authenticated as a WordPress user with access to the plugin settings page (typically administrators). The attacker navigates to the settings page (e.g., /wp-admin/options-general.php?page=clb) and submits a malicious payload such as `` into the Bar Message field. Upon saving, the payload is stored and executed in the browsers of all visitors to any WordPress page that displays the cookie bar. [4]
Impact
Successful exploitation leads to execution of arbitrary JavaScript in the context of any user viewing the site. This enables cookie theft, session hijacking, defacement, or redirection to malicious sites. The attack affects all site visitors, including administrators, and can lead to full compromise of WordPress admin sessions. [3][4]
Mitigation
As of the available references, no official patch has been released. The plugin appears to be unmaintained (last update 1.2.1). Users should disable and remove the plugin immediately. No workaround is available. The vulnerability is listed in the Exploit Database (EDB-ID 49905). [2][4]
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4News mentions
0No linked articles in our index yet.