LearnPress WordPress Plugin Unauthorized Data Deletion Vulnerability (CVE-2026-4365)
The LearnPress plugin for WordPress is vulnerable to unauthorized data deletion due to a missing capability check on the `delete_question_answer()` function, allowing unauthenticated attackers to delete quiz answer options.
The LearnPress plugin for WordPress, in versions up to and including 4.3.2.8, is susceptible to unauthorized data deletion. The vulnerability stems from a missing capability check on the delete_question_answer() function. The plugin exposes a wp_rest nonce in public frontend HTML, and this nonce serves as the sole security check for the lp-load-ajax AJAX dispatcher. As the delete_question_answer action lacks capability or ownership validation, unauthenticated attackers can exploit this flaw to delete arbitrary quiz answer options. This is achieved by sending a crafted POST request containing a publicly available nonce. Exploitation does not require any prior authentication.
Attack Chain
- An unauthenticated attacker identifies a LearnPress installation with a vulnerable version (<= 4.3.2.8).
- The attacker accesses the public frontend of the WordPress site.
- The attacker retrieves the
wp_restnonce from thelpDatavariable in the HTML source code. This nonce is used for AJAX requests. - The attacker crafts a POST request to the
wp-admin/admin-ajax.phpendpoint. - The crafted POST request includes the
actionparameter set todelete_question_answer. - The request also includes the
nonceparameter with the value of the retrievedwp_restnonce. - The request includes the
answer_idparameter set to the ID of the quiz answer option to be deleted. - The server, lacking proper capability checks, processes the request and deletes the specified quiz answer option from the database. This results in data loss and potentially disrupts the functionality of quizzes within the LearnPress plugin.
Impact
Successful exploitation allows unauthenticated attackers to arbitrarily delete quiz answer options within the LearnPress plugin. This can lead to data loss, disruption of quizzes, and potentially compromise the integrity of educational content. The CVSS v3.1 base score for this vulnerability is 9.1, indicating a critical severity. The number of victims and specific sectors targeted are currently unknown, but any website using the vulnerable LearnPress plugin is at risk.
Recommendation
- Upgrade the LearnPress plugin to a version greater than 4.3.2.8 to patch CVE-2026-4365.
- Deploy the Sigma rule “Detect LearnPress Unauthorized Data Deletion Attempt” to your SIEM to identify potential exploitation attempts.
- Monitor web server logs for POST requests to
wp-admin/admin-ajax.phpwith theactionparameter set todelete_question_answerand investigate suspicious activity.
Detection coverage 2
Detect LearnPress Unauthorized Data Deletion Attempt
criticalDetects attempts to exploit the LearnPress unauthorized data deletion vulnerability (CVE-2026-4365) by monitoring POST requests to admin-ajax.php with the 'delete_question_answer' action.
Detect LearnPress Nonce Retrieval
lowDetects access to pages that potentially expose the LearnPress wp_rest nonce.
Detection queries are kept inside the platform. Get full rules →