CVE-2025-8877: AffiliateWP <= 2.28.2 - Unauthenticated SQL Injection
The AffiliateWP plugin for WordPress is vulnerable to SQL Injection via the ajaxgetaffiliateidfromlogin function in all versions up to, and including, 2.28.2 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-8877?
CVE-2025-8877 is considered critical due to its potential for exploiting SQL Injection vulnerabilities in vulnerable systems.
How do I fix CVE-2025-8877?
To fix CVE-2025-8877, update the AffiliateWP plugin to version 2.28.3 or later where the vulnerability has been addressed.
What versions of the AffiliateWP plugin are affected by CVE-2025-8877?
All versions of the AffiliateWP plugin up to and including 2.28.2 are affected by CVE-2025-8877.
What type of vulnerability is CVE-2025-8877?
CVE-2025-8877 is an SQL Injection vulnerability affecting the ajax_get_affiliate_id_from_login function in the AffiliateWP plugin.
What impact can CVE-2025-8877 have on a website?
CVE-2025-8877 can allow attackers to execute arbitrary SQL queries, potentially leading to data theft or unauthorized access to sensitive information.