Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-25114

The Paid Memberships Pro WordPress plugin before 2.6.7 does not escape the discount_code in one of its REST route (available to unauthenticated users) before using it in a SQL statement, leading to a SQL injection

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

Source evidence

CVE-2021-25114

core-osv · Original source

Published 7 Feb 2022, 16:15 UTC

The Paid Memberships Pro WordPress plugin before 2.6.7 does not escape the discount_code in one of its REST route (available to unauthenticated users) before using it in a SQL statement, leading to a SQL injection

osv:CVE-2021-25114
Complete source record
{
  "id": "f28f0295c2c9d8288074141a12a71bd9506522b7c9e8a2a64f90fa10fec53cfe",
  "url": "https://osv.dev/vulnerability/CVE-2021-25114",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-25114",
    "summary": "The Paid Memberships Pro WordPress plugin before 2.6.7 does not escape the discount_code in one of its REST route (available to unauthenticated users) before using it in a SQL statement, leading to a SQL injection",
    "evidence": "osv:CVE-2021-25114",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-25114",
      "aliases": [
        "CVE-2021-25114"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/strangerstudios/paid-memberships-pro",
              "type": "GIT",
              "events": [
                {
                  "introduced": "abb47327a43d4ae034d1be35f6abc1126478ae76"
                },
                {
                  "fixed": "932abfb31ed813804756982dce3ee95640e041af"
                },
                {
                  "introduced": "d0b35d76e38ba5c2eac9bdea3100b81ff32ba419"
                },
                {
                  "fixed": "30918ac8ccf0ccd42a7ac518c3c606f65d8ee50f"
                },
                {
                  "introduced": "043b1adc825ea81f7ad3305025e80fb0856e698a"
                },
                {
                  "fixed": "59352fb4405bf7e1af99d6838cc2cfff180be660"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:strangerstudios:paid_memberships_pro:*:*:*:*:*:wordpress:*:*",
                    "range": [
                      {
                        "introduced": "2.4"
                      },
                      {
                        "fixed": "2.4.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:strangerstudios:paid_memberships_pro:*:*:*:*:*:wordpress:*:*",
                    "range": [
                      {
                        "introduced": "2.5"
                      },
                      {
                        "fixed": "2.5.11"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:strangerstudios:paid_memberships_pro:*:*:*:*:*:wordpress:*:*",
                    "range": [
                      {
                        "introduced": "2.6"
                      },
                      {
                        "fixed": "2.6.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.5.2",
            "2.5.10.2",
            "v2.4.4",
            "2.6.6",
            "2.6.5",
            "2.6.4",
            "2.6.3",
            "2.6.2",
            "2.6.1.1",
            "2.6.1",
            "2.6",
            "2.5.10.1",
            "2.5.10",
            "v2.5.9.1",
            "v2.5.9",
            "v2.5.8",
            "v2.5.7",
            "v2.5.6",
            "v2.5.5",
            "v2.5.4",
            "v2.5.1",
            "v2.5",
            "v2.4.3",
            "v2.4.2",
            "v2.4.1",
            "v2.4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-25114.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:28.995846289Z",
      "provider": "osv",
      "references": [
        "https://www.paidmembershipspro.com/pmpro-update-2-6-7-security-release/",
        "https://wpscan.com/vulnerability/6c25a5f0-a137-4ea5-9422-8ae393d7b76b"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-25114",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 432184,
  "published_at": "2022-02-07T16:15:46.24+00:00"
}