Description
The Lightweight Cookie Notice – Cookie Banner for Cookie Consent plugin for WordPress is vulnerable to Sensitive Information Exposure in all versions up to, and including, 1.19 This is due to the W3TC_DYNAMIC_SECURITY constant being hardcoded to a publicly known value. This makes it possible for unauthenticated attackers to know the W3 Total Cache mfunc security key, which when W3 Total Cache is installed may allow arbitrary PHP code injection.
Published: 2026-10-16
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Sensitive Information Exposure that may lead to arbitrary PHP code injection if W3 Total Cache is installed
Action: Apply Patch
AI Analysis

Impact

The Lightweight Cookie Notice plugin contains a hardcoded constant, W3TC_DYNAMIC_SECURITY, that matches the security key used by the W3 Total Cache plugin. An unauthenticated attacker who can read the plugin files can learn this key, allowing the attacker to execute arbitrary PHP code when W3 Total Cache is also active on the site. This vulnerability is a classic case of sensitive information exposure that can lead to remote code execution if the conditions are met, exposing the confidentiality, integrity, and availability of the website.

Affected Systems

The vulnerability affects all installations of the Lightweight Cookie Notice – Cookie Banner for Cookie Consent plugin for WordPress with versions up to and including 1.19. The issue is present in any environment where W3 Total Cache is also installed, as the security key is shared between the two plugins.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate risk. The EPSS score is < 1%, indicating a very low probability of exploitation, though the attack requires both plugins to be present and the constant to be known. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a web request that allows the attacker to obtain the hardened constant value, possibly through directory traversal or by directly accessing the plugin file.

Generated by OpenCVE AI on October 16, 2026 at 15:03 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Lightweight Cookie Notice to version 1.20 or later, where the hardcoded constant is removed or randomized.
  • If an upgrade is not possible, disable or uninstall the W3 Total Cache plugin to remove the shared security key.
  • Ensure that any custom code or additional plugins do not use hardcoded security constants and verify that file permissions prevent unauthorized access to plugin source files.

Generated by OpenCVE AI on October 16, 2026 at 15:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 16 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 16 Oct 2026 05:45:00 +0000

Type Values Removed Values Added
Description The Lightweight Cookie Notice – Cookie Banner for Cookie Consent plugin for WordPress is vulnerable to Sensitive Information Exposure in all versions up to, and including, 1.19 This is due to the W3TC_DYNAMIC_SECURITY constant being hardcoded to a publicly known value. This makes it possible for unauthenticated attackers to know the W3 Total Cache mfunc security key, which when W3 Total Cache is installed may allow arbitrary PHP code injection.
Title Lightweight Cookie Notice <= 1.19 - Sensitive Information Exposure via W3TC_DYNAMIC_SECURITY Constant
Weaknesses CWE-330
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-10-16T17:06:46.117Z

Reserved: 2026-06-15T11:05:15.749Z

Link: CVE-2026-12272

cve-icon Vulnrichment

Updated: 2026-10-16T16:46:57.724Z

cve-icon NVD

Status : Deferred

Published: 2026-10-16T06:17:09.910

Modified: 2026-10-16T18:17:57.243

Link: CVE-2026-12272

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-16T15:15:14Z

Weaknesses
  • CWE-330

    Use of Insufficiently Random Values