VYPR
High severity7.5NVD Advisory· Published Sep 30, 2025· Updated Apr 15, 2026

CVE-2025-8877

CVE-2025-8877

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

AffiliateWP plugin for WordPress versions up to 2.28.2 are vulnerable to unauthenticated SQL injection via the ajax_get_affiliate_id_from_login function, allowing data extraction.

The AffiliateWP plugin for WordPress contains a SQL injection vulnerability in the ajax_get_affiliate_id_from_login function. The flaw is due to insufficient escaping of user-supplied parameters and lack of prepared statements in the SQL query, allowing an attacker to inject arbitrary SQL.

An unauthenticated attacker can exploit this by sending a crafted request to the vulnerable AJAX endpoint. No authentication or special privileges are required; the attacker only needs network access to the WordPress site. The injection occurs because the function does not properly sanitize the input before incorporating it into the query.

Successful exploitation enables the attacker to append additional SQL queries to the existing one. This can be used to extract sensitive information from the database, such as user credentials, session tokens, or other confidential data stored by the WordPress installation.

All versions of AffiliateWP up to and including 2.28.2 are affected. Users are advised to update to the latest patched version as soon as possible. No workaround has been provided by the vendor at the time of publication.

AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.