# User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor <= 4.0.7 - Unauthenticated Sensitive Information Exposure via REST API Comments on Restricted Posts

- **ID:** WPSEC-2026-4273
- **Plugin:** User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor (`profile-builder`), https://wordpress.org/plugins/profile-builder/
- **Affected versions:** all versions before 4.0.8
- **Fixed in:** 4.0.8 (Update to 4.0.8 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-200
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-12-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/profile-builder
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4273/

## Description

The User Profile Builder plugin for WordPress is vulnerable to Sensitive Information Exposure via the REST API comments endpoint in all versions up to, and including, 4.0.7, due to the Content Restriction feature removing comments of restricted posts only through the the_comments filter, which the single-comment REST route (/wp/v2/comments/<id>) bypasses because it loads the comment with get_comment(). This makes it possible for unauthenticated attackers to read comments posted on posts restricted with the plugin's Content Restriction feature.

## References

- https://wpsec.com/vuln/WPSEC-2026-4273/
- https://plugins.svn.wordpress.org/profile-builder/tags/4.0.8/
- https://wordpress.org/plugins/profile-builder/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4273/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
