Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-24871

The Get Custom Field Values WordPress plugin before 4.0.1 does not escape custom fields before outputting them in the page, which could allow users with a role as low as contributor to perform Cross-Site Scripting attacks

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-24871
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 06:38 UTC · Revision 1

Source evidence

CVE-2021-24871

core-osv · Original source

Published 13 Dec 2021, 11:15 UTC

The Get Custom Field Values WordPress plugin before 4.0.1 does not escape custom fields before outputting them in the page, which could allow users with a role as low as contributor to perform Cross-Site Scripting attacks

osv:CVE-2021-24871
Complete source record
{
  "id": "3019c833cabd1af69ea841517fafbbf81521f4f8288e697f79d766f270c2c8a9",
  "url": "https://osv.dev/vulnerability/CVE-2021-24871",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-24871",
    "summary": "The Get Custom Field Values WordPress plugin before 4.0.1 does not escape custom fields before outputting them in the page, which could allow users with a role as low as contributor to perform Cross-Site Scripting attacks",
    "evidence": "osv:CVE-2021-24871",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-24871",
      "aliases": [
        "CVE-2021-24871"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/coffee2code/get-custom-field-values",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0bff027b8fe6f7588275064701de6b7bc3d3c158"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:get_custom_field_values_project:get_custom_field_values:*:*:*:*:*:wordpress:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.0.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0",
            "3.9.4",
            "3.9.3",
            "3.9.2",
            "3.9.1",
            "3.9",
            "3.8",
            "3.7",
            "3.6.1",
            "3.6",
            "3.5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-24871.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:42.383355996Z",
      "provider": "osv",
      "references": [
        "https://wpscan.com/vulnerability/28007c80-dc14-4987-a52c-f2a05cfe5905"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-24871",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 435365,
  "published_at": "2021-12-13T11:15:09.32+00:00"
}