Summary
CVE-2026-104995 is a Local File Inclusion (LFI, CWE-98) vulnerability in the BP Profile Search WordPress plugin (vendor: dontdream) affecting versions up to and including 5.9. It is rated High severity (CVSS 8.1). It is fixed in version 6.0.
Technical details
- Root cause: the plugin reads the
ajax_templatevalue from thebps_directorycookie during BuddyPress AJAX requests. It applies only a referer-derived "page" comparison, appends.phpto the attacker-controlled value, and passes it tobp_locate_template(). There is no basename restriction, whitelist, or path-traversal check. - Trigger conditions: a crafted
bps_directorycookie sent with a BuddyPress AJAX request. The CVSS vector rates attack complexity as High. - Attack vector: network, with no authentication and no user interaction required.
- Impact: inclusion of attacker-chosen local PHP files, with high impact on confidentiality, integrity, and availability according to the CVSS vector.
Affected software
- BP Profile Search (dontdream) versions 0 through 5.9
Severity
- CVSS v3.1 base score: 8.1 (High)
- Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: upgrade BP Profile Search to version 6.0 or later.
- If you cannot patch immediately, deactivate the plugin until you can upgrade.

