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-107657 Overview
CVE-2026-107657 is a Stored Cross-Site Scripting (XSS) vulnerability in the HivePress – Business Directory, Listings & Classified Ads Plugin for WordPress. The flaw affects all versions up to and including 1.7.31. Unauthenticated attackers can inject arbitrary web scripts via a custom user attribute field (for example profile_test) due to insufficient input sanitization and output escaping. The injected payload executes whenever a visitor loads an affected profile page. Exploitation requires that an administrator has configured a text-type custom user attribute whose display format places %value% inside an HTML attribute context, and that front-end user profiles are enabled. Both conditions reflect the plugin's documented standard configuration, which broadens the vulnerable deployment base.
Critical Impact
Unauthenticated attackers can inject persistent JavaScript into user profile pages, enabling session hijacking, credential theft, and administrative account takeover when administrators view affected profiles.
Affected Products
- HivePress – Business Directory, Listings & Classified Ads Plugin for WordPress, versions up to and including 1.7.31
- WordPress installations with front-end user profiles enabled
- Sites with text-type custom user attributes using an HTML-attribute display format
Discovery Timeline
- 2026-10-10 - CVE-2026-107657 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-107657
Vulnerability Analysis
The vulnerability is a stored Cross-Site Scripting flaw classified under CWE-79. HivePress allows administrators to define custom user attributes whose values are rendered on front-end user profiles. When the display format embeds the user-supplied %value% placeholder inside an HTML attribute, as in the documented pattern <a href="%value%">Custom link</a>, the plugin fails to escape the value for an attribute context. An unauthenticated attacker can register a user profile and submit a payload that breaks out of the attribute and injects arbitrary JavaScript. The script is stored in the database and executes in the browser of every visitor who views the profile.
Root Cause
The root cause is insufficient input sanitization and output escaping in the text field rendering logic. Relevant plugin code paths include includes/components/class-attribute.php, includes/fields/class-field.php, includes/fields/class-text.php, and includes/helpers.php. Sanitization applied to the text field does not account for HTML-attribute context, so characters such as ", ', and > pass through unescaped when the template places %value% inside an attribute.
Attack Vector
The attack is network-based and requires no authentication or user interaction beyond browsing a profile. An attacker creates a front-end user account and populates the vulnerable custom attribute with a payload designed to escape the enclosing HTML attribute, such as closing the quoted attribute and appending an inline event handler or <script> tag. When any user, including a signed-in administrator, loads the attacker-controlled profile page, the stored payload executes in their browser session. See the Wordfence Vulnerability Report for additional technical context. No verified public exploit code is referenced in the enriched data.
Detection Methods for CVE-2026-107657
Indicators of Compromise
- User profile records containing attribute values with suspicious characters such as ", onerror=, onclick=, javascript:, or <script> tags.
- Outbound requests from administrator browsers to unknown external hosts shortly after viewing a user profile page.
- Unexpected creation of new WordPress administrator accounts or modification of plugin settings following profile views.
- HTTP POST requests from unauthenticated sources to HivePress user registration and profile update endpoints containing encoded script payloads.
Detection Strategies
- Audit the WordPress database for HivePress user attribute values containing HTML or JavaScript syntax, focusing on text-type attributes with HTML-attribute display formats.
- Deploy Web Application Firewall rules that identify XSS payload patterns submitted to HivePress registration and profile update URIs.
- Review web server access logs for unauthenticated POST requests to user profile endpoints that contain quote characters or event-handler keywords.
Monitoring Recommendations
- Enable WordPress audit logging for user registration, profile updates, and HivePress plugin configuration changes.
- Monitor administrator session activity for anomalous actions originating from profile page views.
- Alert on changes to plugin files, administrator accounts, or roles that follow visits to front-end user profiles.
How to Mitigate CVE-2026-107657
Immediate Actions Required
- Update the HivePress plugin to version 1.7.32 or later immediately on all WordPress sites.
- Review all configured custom user attributes and remove or reconfigure any text-type attribute whose display format places %value% inside an HTML attribute.
- Audit existing user profile data for stored payloads and sanitize or purge malicious entries before applying the patch to prevent delayed execution.
- Rotate administrator credentials and invalidate active sessions if indicators of exploitation are present.
Patch Information
The vendor addressed CVE-2026-107657 in HivePress version 1.7.32. See the GitHub Release 1.7.32 for release details. The fix adds proper context-aware escaping for user-supplied values rendered inside HTML attributes. Review the pre-patch code in class-attribute.php and class-text.php for comparison.
Workarounds
- Temporarily disable front-end user profiles in HivePress settings until the plugin is updated.
- Remove or rewrite custom user attribute display formats so that %value% is rendered as text content rather than inside an HTML attribute.
- Restrict user registration to authenticated or manually approved accounts to reduce exposure to unauthenticated submissions.
- Deploy a Web Application Firewall rule to block requests to HivePress profile endpoints containing HTML-attribute-breaking characters.
# Example: WP-CLI command to update the HivePress plugin to the patched version
wp plugin update hivepress --version=1.7.32
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

