CVE-2026-4019
Received Received - Intake

Unauthorized Data Access in Complianz WordPress Plugin via REST API

Vulnerability report for CVE-2026-4019, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-04-29

Last updated on: 2026-04-29

Assigner: Wordfence

Description

The Complianz – GDPR/CCPA Cookie Consent plugin for WordPress is vulnerable to unauthorized data access in all versions up to, and including, 7.4.5 This is due to the REST API endpoint at /wp-json/complianz/v1/consent-area/{post_id}/{block_id} using __return_true as the permission_callback, allowing any unauthenticated user to access it. The cmplz_rest_consented_content() function retrieves a post by ID via get_post() and returns the consentedContent attribute of any complianz/consent-area block found in it, without checking if the post is published or if the user has permission to read it. This makes it possible for unauthenticated attackers to read the consent area block content from private, draft, or unpublished posts.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-04-29
Last Modified
2026-04-29
Generated
2026-07-26
AI Q&A
2026-04-29
EPSS Evaluated
2026-07-25
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
complianz gdpr_cookie_consent_plugin to 7.4.5 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-862 The product does not perform an authorization check when an actor attempts to access a resource or perform an action.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The vulnerability exists in the Complianz – GDPR/CCPA Cookie Consent plugin for WordPress, affecting all versions up to and including 7.4.5. It arises because the REST API endpoint at /wp-json/complianz/v1/consent-area/{post_id}/{block_id} uses __return_true as the permission callback, which means it allows any unauthenticated user to access it.

The function cmplz_rest_consented_content() retrieves a post by its ID and returns the consentedContent attribute of any complianz/consent-area block found in that post without verifying if the post is published or if the user has permission to read it.

As a result, unauthenticated attackers can read the consent area block content from private, draft, or unpublished posts, leading to unauthorized data access.

Detection Guidance

This vulnerability can be detected by checking if the REST API endpoint /wp-json/complianz/v1/consent-area/{post_id}/{block_id} is accessible without authentication and returns content from private, draft, or unpublished posts.

A practical way to detect this on your system is to send an unauthenticated HTTP GET request to this endpoint with various post_id and block_id values and observe if it returns consent area content from posts that should not be publicly accessible.

  • Use curl to test the endpoint: curl -X GET https://your-wordpress-site.com/wp-json/complianz/v1/consent-area/{post_id}/{block_id}
  • Replace {post_id} and {block_id} with IDs of private, draft, or unpublished posts to check if unauthorized content is returned.

If the response contains consent area content from non-public posts, the vulnerability is present.

Impact Analysis

This vulnerability allows unauthenticated attackers to access sensitive content from private, draft, or unpublished posts through the plugin's REST API endpoint.

Such unauthorized data access can lead to exposure of confidential or sensitive information that was not intended to be publicly available.

Since the vulnerability does not require authentication, it increases the risk of data leakage without any user credentials or permissions.

Compliance Impact

This vulnerability allows unauthenticated attackers to access consent area block content from private, draft, or unpublished posts via the REST API endpoint without proper permission checks.

Since the plugin is designed to manage GDPR and CCPA cookie consent, unauthorized data access could lead to exposure of sensitive consent-related information, potentially violating data protection requirements under GDPR and similar regulations.

Such unauthorized access undermines the confidentiality and integrity of user consent data, which is critical for compliance with privacy regulations like GDPR and HIPAA that mandate strict control over personal data access.

Mitigation Strategies

Immediate mitigation steps include updating the Complianz GDPR/CCPA Cookie Consent plugin to a version later than 7.4.5 where this vulnerability is fixed.

If an update is not immediately possible, restrict access to the REST API endpoint /wp-json/complianz/v1/consent-area/{post_id}/{block_id} by implementing authentication or IP-based access controls at the web server or application firewall level.

Additionally, monitor and audit access logs for suspicious unauthenticated requests to this endpoint.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-4019. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart