Skip to content
OpenAdvisories
High · 7.5 CVE-2025-8877 EUVD-2025-31707GHSA-mjmg-pjmq-g329

AffiliateWP <= 2.28.2 - Unauthenticated SQL Injection

Published Sep 30, 2025 · Updated Apr 8, 2026 · Assigned by Wordfence

Description

The AffiliateWP plugin for WordPress is vulnerable to SQL Injection via the ajax_get_affiliate_id_from_login 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 products

VendorProductAffectedFixed
AffiliateWP AffiliateWP ≤ 2.28.2 —

References