CVE-2025-8877 HIGH

CVE-2025-8877: AffiliateWP <= 2.28.2 - Unauthenticated SQL Injection

Vendor Affiliatewp
Product AffiliateWP
Weakness CWE-89 · SQLi
Published September 30, 2025
Last update April 8, 2026

CVSS base score

7.5/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality High
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

AffiliateWP versions up to 2.28.2 contain a SQL injection vulnerability that allows unauthenticated attackers to read sensitive data from the site database. The vulnerability exists in a network-accessible component and requires no user interaction. An attacker can craft malicious requests to extract information such as user credentials, affiliate data, and other confidential records.

What an attacker can do

03Attacker Capabilities

Read sensitive data from the site database, including user credentials and affiliate information.

Potential impact on your site

04Site Impact

Attackers can extract user passwords, affiliate records, and other confidential data without logging in.

Conditions required to exploit

05Prerequisites

Network access to the site; no authentication or user interaction required.

Key dates

06Disclosure timeline

September 30, 2025 CVE published
April 8, 2026 Record updated