CVE-2021-24979
WordPress vulnerability analysis and mitigation

Overview

The vulnerability CVE-2021-24979 is a Reflected Cross-Site Scripting (XSS) issue affecting the Paid Memberships Pro WordPress plugin versions 2.6.5 and below. The vulnerability was discovered by ZhongFu Su (JrXnm) from Wuhan University and was publicly disclosed on November 23, 2021 (WPScan).

Technical details

The vulnerability exists because the plugin fails to properly escape the 's' parameter before outputting it back in an attribute in an admin page. This security flaw has been assigned a CVSS score of 8.8 (high severity) and is classified under CWE-79. The vulnerability specifically affects the discount codes administration page of the plugin (WPScan).

Impact

When exploited, this vulnerability could allow attackers to execute arbitrary JavaScript code in the context of the admin user's browser session. This could potentially lead to unauthorized actions being performed on behalf of the administrator or the theft of sensitive information (WPScan).

Exploitability

A proof of concept exploit has been documented, targeting the admin page through the URL path '/wp-admin/admin.php?page=pmpro-discountcodes' with a malicious 's' parameter that can trigger JavaScript execution (WPScan).

Mitigation and workarounds

The vulnerability has been patched in version 2.6.6 of the Paid Memberships Pro plugin. Users are strongly advised to update to this version or later to mitigate the risk. The fix involves proper escaping of the 's' parameter in the discount codes administration page (WordPress Trac).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-18044NONEN/A
  • estatik
NoYesAug 12, 2026
CVE-2026-17008NONEN/A
  • quick-paypal-payments
NoNoAug 12, 2026
CVE-2026-16990NONEN/A
  • wp-paypal
NoNoAug 12, 2026
CVE-2026-16747NONEN/A
  • kirki
NoYesAug 12, 2026
CVE-2026-16621NONEN/A
  • woo-paypal-gateway
NoYesAug 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management