Skip to main content
Vulnerability Database/CVE-2026-104003

CVE-2026-104003: WP User Avatar/ProfilePress RCE Vulnerability

CVE-2026-104003 is a remote code execution vulnerability in the WP User Avatar/ProfilePress WordPress plugin allowing authenticated attackers to execute arbitrary shortcodes. This article covers technical details, affected versions, and mitigation.

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-2026-104003 Overview

CVE-2026-104003 is an Arbitrary Shortcode Execution vulnerability affecting the WP User Avatar / ProfilePress plugin for WordPress through version 4.17.5. The flaw resides in the get_user_profile_structure() function, which assembles the front-end profile buffer and passes it to do_shortcode() after an insufficient neutralization pass. Authenticated attackers with Subscriber-level access can inject arbitrary shortcodes from any active plugin or theme by posting a crafted comment. The shortcode executes server-side when any visitor loads the target profile's Comments tab. This classifies as Improper Control of Generation of Code [CWE-94].

Critical Impact

Authenticated Subscriber users can trigger execution of arbitrary registered shortcodes with attacker-controlled attributes, reaching capability-gated or data-returning shortcodes and injecting raw HTML into publicly viewable pages.

Affected Products

  • WP User Avatar / ProfilePress plugin for WordPress — versions up to and including 4.17.5
  • Fixed in version 4.17.6
  • WordPress sites with the plugin active and comments enabled on front-end profiles

Discovery Timeline

  • 2026-10-16 - CVE-2026-104003 published to the National Vulnerability Database (NVD)
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-104003

Vulnerability Analysis

The vulnerability stems from how ProfilePress renders the Comments tab on a user's front-end profile. The get_user_profile_structure() function builds a buffer that inlines raw comment excerpts via author_comment_query(). The complete buffer is then passed through do_shortcode(), which executes any WordPress shortcode registered by active plugins or themes.

Before invoking do_shortcode(), the plugin runs ppress_neutralize_buffer_shortcodes(). This filter only strips the pp-custom-html shortcode and bracket fragments containing HTML delimiters. Any other well-formed shortcode passes through unchanged. An attacker with Subscriber-level access can post a comment containing shortcode markup with chosen attributes. The injected shortcode executes server-side during profile rendering, enabling access to data-returning or capability-gated shortcodes and HTML injection into a publicly viewable page.

Root Cause

The root cause is improper neutralization of user-controlled input before shortcode expansion. The sanitization pass is narrow in scope and does not treat comment content as untrusted when the resulting buffer is handed to do_shortcode(). The design assumes a short deny-list is sufficient, rather than preventing shortcode execution within comment bodies entirely.

Attack Vector

Exploitation requires an authenticated account at Subscriber level or higher. The attacker posts a comment whose body includes shortcode markup targeting any registered shortcode. When any visitor loads the target user's front-end profile and views the Comments tab, the server expands the shortcode and returns the result inside the rendered page.

For source references, see the vulnerable FrontendProfileTag in 4.17.5, the DefaultTemplate comment rendering path, and the patched FrontendProfileTag in 4.17.6.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-104003

Indicators of Compromise

  • Comment records in wp_comments containing shortcode markup such as [ and ] bracket pairs around plugin or theme tags
  • Unexpected HTML markup appearing within the Comments tab of ProfilePress front-end profiles
  • New Subscriber-level accounts posting comments immediately after registration
  • Outbound requests or data returned by shortcodes that would not normally fire on a profile page

Detection Strategies

  • Audit the comment_content column for bracketed tokens that match registered shortcode names from active plugins and themes
  • Compare rendered profile output against raw comment content to flag server-side shortcode expansion
  • Monitor WordPress audit logs for Subscriber accounts posting comments on user profile pages
  • Review the installed plugin version and confirm whether it is 4.17.5 or earlier

Monitoring Recommendations

  • Enable detailed WordPress and web server access logs for /author/ or ProfilePress-generated profile URLs
  • Alert on registration spikes followed by comment posting activity on profile pages
  • Track changes to shortcode output on publicly viewable profile pages
  • Review the Wordfence vulnerability analysis for additional detection signatures

How to Mitigate CVE-2026-104003

Immediate Actions Required

  • Update the WP User Avatar / ProfilePress plugin to version 4.17.6 or later on all WordPress installations
  • Review existing comments on front-end profile pages for shortcode markup and remove suspicious entries
  • Audit Subscriber-level accounts created recently and remove any that appear automated or malicious
  • Temporarily disable the Comments tab on ProfilePress front-end profiles if patching cannot be completed immediately

Patch Information

The maintainers released WP User Avatar / ProfilePress 4.17.6 with a corrected FrontendProfileTag implementation. Review the patched source for FrontendProfileTag in 4.17.6 to confirm the fix. All sites running 4.17.5 or earlier should upgrade.

Workarounds

  • Disable the ProfilePress plugin until the patched version can be installed
  • Restrict comment posting on profile pages to higher-privileged roles using an access-control plugin
  • Remove or restrict do_shortcode() processing on comment content via a custom filter until patched
  • Require moderation for all comments from Subscriber accounts to block shortcode markup before rendering
bash
# Update ProfilePress to the fixed version using WP-CLI
wp plugin update wp-user-avatar --version=4.17.6

# Verify installed version
wp plugin get wp-user-avatar --field=version

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.