# Profile Extra Fields by BestWebSoft <= 1.3.7 - Unauthenticated Reflected Cross-Site Scripting via Registration Form Extra Field Values

- **ID:** WPSEC-2026-4316
- **Plugin:** Profile Extra Fields by BestWebSoft (`profile-extra-fields`), https://wordpress.org/plugins/profile-extra-fields/
- **Affected versions:** from 1.2.4 before 1.3.8
- **Fixed in:** 1.3.8 (Update to 1.3.8 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/profile-extra-fields
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4316/

## Description

The Profile Extra Fields by BestWebSoft plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'prflxtrflds_user_field_value' parameter of the extra fields shown on the user registration form in versions 1.2.4 up to, and including, 1.3.7. This is due to insufficient output escaping in the prflxtrflds_get_field_html() function. The submitted value is only passed through sanitize_text_field(), which does not encode double quotes, and is then echoed back unescaped into the value attribute of the input when the registration form is shown again. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute if they can trick a user into submitting a crafted request, for example by visiting a page that auto-submits a form. Exploitation requires user registration to be enabled and at least one extra field to be configured to show on the registration form.

## References

- https://wpsec.com/vuln/WPSEC-2026-4316/
- https://plugins.svn.wordpress.org/profile-extra-fields/tags/1.3.8/
- https://wordpress.org/plugins/profile-extra-fields/

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

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.
