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

CVE-2025-13054: WordPress User Profile Builder XSS Flaw

CVE-2025-13054 is a stored cross-site scripting vulnerability in the User Profile Builder plugin for WordPress that allows authenticated attackers to inject malicious scripts. This article covers technical details, affected versions, 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-13054 Overview

CVE-2025-13054 is a Stored Cross-Site Scripting (XSS) vulnerability in the User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor plugin for WordPress. The flaw resides in the plugin's wppb-embed shortcode and affects all versions up to and including 3.14.8. Insufficient input sanitization and output escaping on user-supplied attributes allow authenticated attackers with contributor-level access or above to inject arbitrary web scripts. The injected scripts execute in the browser of any user who visits the affected page. The issue is tracked under CWE-79 (Improper Neutralization of Input During Web Page Generation).

Critical Impact

Authenticated contributors can persist malicious JavaScript in WordPress pages, enabling session theft, administrator account takeover, and drive-by malware delivery to site visitors.

Affected Products

  • WordPress User Profile Builder plugin — versions ≤ 3.14.8
  • Cozmoslabs Profile Builder (Free edition) shortcode handler
  • Any WordPress site permitting contributor-level registration with the plugin installed

Discovery Timeline

  • 2025-11-19 - CVE-2025-13054 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-13054

Vulnerability Analysis

The vulnerability stems from how the Profile Builder plugin processes attributes passed to its wppb-embed shortcode. The shortcode handler accepts user-supplied attribute values and reflects them into rendered page output without applying proper sanitization or context-aware escaping. When a contributor embeds the shortcode in a post or page and supplies attribute values containing HTML or JavaScript, the payload is stored in the database and rendered verbatim when the page loads.

Because the payload persists in post content, every visitor to the affected page executes the injected script within the site's origin. This enables cookie theft, forced administrative actions via authenticated requests, and redirection to attacker-controlled infrastructure. The upstream fix is documented in the WordPress Profile Builder Changeset 3397155.

Root Cause

The root cause is missing input validation and output escaping in the wppb-embed shortcode callback. Attribute values pulled from the shortcode should be filtered with WordPress functions such as sanitize_text_field() on input and esc_attr() or esc_html() on output. The vulnerable versions omit these controls, treating attacker-controlled attributes as trusted markup.

Attack Vector

The attack requires network access to the WordPress site and an authenticated account with contributor privileges or higher. An attacker with a contributor account creates or edits a post containing the wppb-embed shortcode with a malicious attribute value carrying a JavaScript payload. Once the post is published or previewed by a privileged user, the script executes in the browser under the site's origin. Additional detail is available in the Wordfence Vulnerability Analysis.

No verified exploit code is publicly available. The vulnerability is described in prose based on the vendor advisory and changeset.

Detection Methods for CVE-2025-13054

Indicators of Compromise

  • Post or page content containing [wppb-embed ...] shortcodes with attribute values that include <script>, javascript:, onerror=, or onload= handlers.
  • Newly created contributor or author accounts that immediately author or edit posts containing the wppb-embed shortcode.
  • Outbound browser requests from site visitors to unknown domains sourced from injected script tags.
  • Unexpected administrator session activity following visits to contributor-authored pages.

Detection Strategies

  • Query the wp_posts table for post_content matching wppb-embed combined with HTML event handlers or script tags.
  • Review WordPress audit logs for contributor accounts modifying posts that use the wppb-embed shortcode.
  • Deploy web application firewall rules that inspect shortcode attributes for JavaScript payloads before storage.

Monitoring Recommendations

  • Monitor plugin version inventory across WordPress installations to identify hosts still running Profile Builder ≤ 3.14.8.
  • Alert on new user registrations that receive contributor privileges automatically, especially on sites with open registration enabled.
  • Track browser-side Content Security Policy (CSP) violation reports for inline script execution on pages served by WordPress.

How to Mitigate CVE-2025-13054

Immediate Actions Required

  • Update the User Profile Builder plugin to the version that incorporates changeset 3397155 or later.
  • Audit all existing posts and pages for wppb-embed shortcodes and review their attribute values for malicious content.
  • Review contributor, author, and editor accounts and remove untrusted or unused users.
  • Rotate administrator session cookies and reset credentials if injection is confirmed on production pages.

Patch Information

The vendor addressed the vulnerability in the plugin update referenced by WordPress Profile Builder Changeset 3397155. Site operators should upgrade beyond version 3.14.8 and validate that the patched shortcode handler applies sanitization to all user-supplied attributes.

Workarounds

  • Deactivate the User Profile Builder plugin until it can be updated on affected sites.
  • Restrict contributor-level and higher account provisioning to trusted users only.
  • Apply a Content Security Policy that disallows inline scripts to limit the impact of any stored XSS payload.
  • Deploy WAF signatures that block requests containing wppb-embed attributes with <script> or event-handler patterns.
bash
# Search WordPress database for suspicious wppb-embed shortcodes
wp db query "SELECT ID, post_title FROM wp_posts \
  WHERE post_content REGEXP 'wppb-embed[^]]*(<script|onerror=|onload=|javascript:)'"

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.