← Vulnerability feed

Vulnerability record · CVE-2021-25114 · published 7 February 2022

CVE-2021-25114: Paid Memberships Pro unauthenticated SQL injection via discount_code

Strangerstudios · Paid Memberships Pro

The Paid Memberships Pro WordPress plugin before 2.6.7 fails to escape the discount_code parameter in a REST route that is reachable without authentication, then uses it directly in a SQL statement. This allows unauthenticated SQL injection against sites running the affected plugin.

9.8 CVSS 3.1 Critical EPSS 82% · top 0.4% CWE-89 · SQL injection
9.8CVSS 3.1 base score, v2 7.5
82%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

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

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityUnauthenticated network-reachable SQL injection with CVSS 9.8 and very high EPSS makes this an urgent patch target.

What it is

The Paid Memberships Pro WordPress plugin before 2.6.7 fails to escape the discount_code parameter in a REST route that is reachable without authentication, then uses it directly in a SQL statement. This allows unauthenticated SQL injection against sites running the affected plugin.

Impact

An attacker can read and modify database contents, including user and membership data, and potentially execute administrative actions depending on database privileges.

Attack surface

Reached over the network through the plugin's unauthenticated REST route; no authentication or user interaction is required per the CVSS vector (AV:N/AC:L/PR:N/UI:N).

Exploitation

Not listed in CISA KEV, but EPSS is very high (0.818, 99.6th percentile) and a public exploit reference is tagged by WPScan, indicating active interest and likely weaponization.

What to do

  • Update Paid Memberships Pro to 2.6.7 or later immediately.
  • If patching is delayed, disable or restrict access to the plugin's REST routes, especially the discount_code endpoint.
  • Apply a WAF rule to block SQL injection patterns on REST requests to the plugin.
  • Audit database and membership records for signs of tampering after exposure.
  • Review database account privileges to limit impact of successful injection.

Detection

  • Monitor web logs for REST requests containing SQL metacharacters in discount_code or similar parameters.
  • Alert on SQL error responses or unusual query patterns from the WordPress REST API.
  • Hunt for unexpected changes to membership, user, or discount tables.
  • Correlate requests to the plugin's REST endpoints from unauthenticated or anomalous sources.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-25114 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-37277Strangerstudios paid memberships pro insecure direct object reference vulnerabilityAuthorization Bypass Through User-Controlled Key vulnerability in Paid Memberships Pro allows Accessing Functionality Not Properly Constrained by ACL…EPSS 0.67%9.8CVE-2023-23488Paid Memberships Pro WordPress plugin unauthenticated SQL injectionThe Paid Memberships Pro WordPress plugin before version 2.9.8 is affected by an unauthenticated SQL injection in the 'code' parameter of the '/pmpro…EPSS 92%analysed8.8CVE-2023-39990Strangerstudios paid memberships pro missing authorization vulnerabilityMissing Authorization vulnerability in Paid Memberships Pro.This issue affects Paid Memberships Pro: from n/a through 1.2.3.EPSS 0.48%8.8CVE-2024-32793Strangerstudios paid memberships pro cross-site request forgery vulnerabilityCross-Site Request Forgery (CSRF) vulnerability in Paid Memberships Pro.This issue affects Paid Memberships Pro: from n/a through 2.12.10.EPSS 0.23%8.8CVE-2024-32794Strangerstudios paid memberships pro cross-site request forgery vulnerabilityCross-Site Request Forgery (CSRF) vulnerability in Paid Memberships Pro.This issue affects Paid Memberships Pro: from n/a through 2.12.10.EPSS 0.25%8.8CVE-2023-6187Paid Memberships Pro WordPress plugin arbitrary file uploadThe Paid Memberships Pro plugin for WordPress fails to properly validate file types in the pmpro_paypalexpress_session_vars_for_user_fields function …EPSS 51%analysed8.8CVE-2023-0631Paid Memberships Pro WordPress plugin SQL injection via shortcodesThe Paid Memberships Pro WordPress plugin before 2.9.12 fails to prevent subscribers from rendering shortcodes that concatenate attributes directly i…EPSS 60%analysed8.8CVE-2021-20678Strangerstudios paid memberships pro sql injection vulnerabilitySQL injection vulnerability in the Paid Memberships Pro versions prior to 2.5.6 allows remote authenticated attackers to execute arbitrary SQL comman…EPSS 2.0%

Source: NIST National Vulnerability Database (record CVE-2021-25114), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.