Skip to content
Heist/ feed
Back to feed
Medium

Complianz – GDPR/CCPA Cookie Consent <= 7.4.5 - Missing Authorization to Unauthenticated Private Post Content Disclosure via Consent Area REST Endpoint

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-4019
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 03:59 UTC · Revision 1

Source evidence

Complianz – GDPR/CCPA Cookie Consent <= 7.4.5 - Missing Authorization to Unauthenticated Private Post Content Disclosure via Consent Area REST Endpoint

core-osv · Original source

Published 29 Apr 2026, 08:27 UTC

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.

osv:CVE-2026-4019
Complete source record
{
  "id": "07ad695d50ee932517496bc87dad4d05c7f10b357548b95a2b81adfc863f9f64",
  "url": "https://osv.dev/vulnerability/CVE-2026-4019",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Complianz – GDPR/CCPA Cookie Consent <= 7.4.5 - Missing Authorization to Unauthenticated Private Post Content Disclosure via Consent Area REST Endpoint",
    "summary": "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.",
    "evidence": "osv:CVE-2026-4019",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-4019",
      "aliases": [
        "CVE-2026-4019"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/complianz/complianz-gdpr",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "258c6fbd3a351a155ba4249990c654d229abc2b5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "7.4.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v7.4.5",
            "v7.4.3",
            "v7.4.2",
            "v7.4.1",
            "v7.4.0",
            "v7.3.1",
            "v7.3.0",
            "v7.2.0",
            "v7.1.5",
            "v7.1.4",
            "v7.1.0",
            "v7.0.5",
            "v7.0.4",
            "v7.0.3",
            "v7.0.0",
            "v6.5.5",
            "v6.5.4",
            "v6.5.2",
            "v6.5.1",
            "v6.5.0",
            "v6.4.7",
            "v6.4.6",
            "v6.4.5",
            "v6.4.4",
            "v6.4.3",
            "v6.4.2.1",
            "v6.4.2",
            "v6.4.1",
            "v6.3.9",
            "v6.3.6.1",
            "v6.3.6",
            "v6.3.4",
            "v6.3.3",
            "v6.3.2.1",
            "v6.3.2",
            "v6.3.1",
            "v6.3.0",
            "v6.2.4",
            "v6.2.0",
            "v6.1.6.1",
            "v6.1.6",
            "v6.1.5",
            "v6.1.3",
            "v6.1.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-4019.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.515153469Z",
      "provider": "osv",
      "references": [
        "https://github.com/complianz/complianz-gdpr/blob/64c09657bd028f62d7b50a54d83ca19b87df2cef/rest-api/rest-api.php#L61",
        "https://plugins.trac.wordpress.org/browser/complianz-gdpr/tags/7.4.4.2/rest-api/rest-api.php#L54",
        "https://plugins.trac.wordpress.org/browser/complianz-gdpr/tags/7.4.4.2/rest-api/rest-api.php#L61",
        "https://plugins.trac.wordpress.org/changeset/3508713/complianz-gdpr/trunk/rest-api/rest-api.php",
        "https://plugins.trac.wordpress.org/changeset?old_path=%2Fcomplianz-gdpr/tags/7.4.5&new_path=%2Fcomplianz-gdpr/tags/7.4.6",
        "https://www.wordfence.com/threat-intel/vulnerabilities/id/3892489e-6ff7-4664-bb06-b8edff6dd659?source=cve",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4019.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-4019"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-862"
        ],
        "cna_assigner": "Wordfence",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4019.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-4019",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517952,
  "published_at": "2026-04-29T08:27:43.231+00:00"
}