Skip to main content
Vulnerability Database/CVE-2025-22817

CVE-2025-22817: BP Profile Shortcodes Extra XSS Flaw

CVE-2025-22817 is a stored cross-site scripting vulnerability in BP Profile Shortcodes Extra plugin affecting versions up to 2.6.0. This article covers the technical details, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-22817 Overview

CVE-2025-22817 is a stored Cross-Site Scripting (XSS) vulnerability in the Venutius BP Profile Shortcodes Extra plugin for WordPress. The flaw affects all versions of bp-profile-shortcodes-extra up to and including 2.6.0. Attackers with low-level privileges can inject malicious scripts that persist in the application and execute in the browsers of other users who view the affected pages. The vulnerability is categorized under CWE-79 (Improper Neutralization of Input During Web Page Generation).

Critical Impact

Authenticated attackers can inject persistent JavaScript payloads that execute in victim browsers, enabling session theft, account takeover, and administrative actions in BuddyPress-powered WordPress sites.

Affected Products

  • Venutius BP Profile Shortcodes Extra plugin for WordPress
  • Plugin slug bp-profile-shortcodes-extra versions through 2.6.0
  • WordPress sites running BuddyPress with the affected plugin installed

Discovery Timeline

  • 2025-01-09 - CVE-2025-22817 published to the National Vulnerability Database
  • 2026-06-17 - Record last updated in NVD

Technical Details for CVE-2025-22817

Vulnerability Analysis

The plugin fails to properly neutralize user-supplied input before it is rendered in web page output. This classic stored XSS pattern allows an attacker to persist malicious script content in the WordPress database. When another user, including administrators, loads the affected profile or shortcode-rendered page, the browser executes the attacker's payload within the site's origin.

Stored XSS in a BuddyPress profile context is particularly impactful because profile data is routinely rendered to many users. The scope change indicated in the CVSS vector means the payload can affect resources beyond the vulnerable component, including administrative sessions. Exploitation requires a low-privileged authenticated account and user interaction to view the poisoned content.

Root Cause

The root cause is missing or insufficient output encoding and input sanitization in the plugin's shortcode rendering logic. Profile fields processed by bp-profile-shortcodes-extra are written back into HTML context without applying functions such as esc_html(), esc_attr(), or wp_kses() to strip or escape script-bearing content. See the Patchstack XSS Vulnerability Report for additional technical context.

Attack Vector

An authenticated attacker with permission to edit a BuddyPress profile submits a crafted payload containing HTML or JavaScript. The malicious content is stored in the WordPress database. When a victim user loads a page that renders the attacker's profile data through a vulnerable shortcode, the browser parses and executes the injected script. The payload can hijack sessions, perform actions as the victim, exfiltrate cookies, or deliver secondary payloads.

No verified public exploit code is available. The attack mechanism follows the standard stored XSS pattern described in CWE-79.

Detection Methods for CVE-2025-22817

Indicators of Compromise

  • Unexpected <script> tags, event handlers such as onerror= or onload=, or javascript: URIs stored in BuddyPress wp_bp_xprofile_data entries.
  • Outbound HTTP requests from authenticated user browsers to attacker-controlled domains after loading profile pages.
  • New or modified WordPress administrator accounts created shortly after a profile page view.

Detection Strategies

  • Query the WordPress database for profile field values containing HTML tags, encoded script content, or suspicious keywords such as onerror, onload, eval(, or document.cookie.
  • Deploy a Content Security Policy (CSP) in report-only mode to surface inline script execution originating from profile pages.
  • Enable web application firewall (WAF) rules that log requests with reflected or stored script payloads targeting BuddyPress endpoints.

Monitoring Recommendations

  • Monitor WordPress audit logs for profile updates by low-privileged users followed by administrator session activity.
  • Track browser-side errors and CSP violation reports from authenticated sessions viewing user profiles.
  • Alert on installation of or updates to the bp-profile-shortcodes-extra plugin and verify it is running a patched version.

How to Mitigate CVE-2025-22817

Immediate Actions Required

  • Identify all WordPress instances running bp-profile-shortcodes-extra version 2.6.0 or earlier and prioritize them for remediation.
  • Review BuddyPress profile fields for existing malicious payloads and sanitize or purge affected records.
  • Rotate credentials and invalidate active sessions for administrators who may have viewed attacker-controlled profiles.

Patch Information

At the time of publication, no fixed version is listed in the advisory. Monitor the Patchstack advisory and the plugin's WordPress.org listing for an update beyond version 2.6.0.

Workarounds

  • Deactivate and remove the bp-profile-shortcodes-extra plugin until a patched version is released.
  • Restrict profile editing to trusted roles and require re-authentication for sensitive administrative actions.
  • Deploy a WAF or virtual patching rule that blocks HTML and script content in BuddyPress profile submissions.
  • Enforce a strict Content Security Policy that disallows inline scripts on BuddyPress-rendered pages.
bash
# Example: disable the vulnerable plugin via WP-CLI
wp plugin deactivate bp-profile-shortcodes-extra
wp plugin delete bp-profile-shortcodes-extra

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.