NEX-Forms <= 9.2.2 - Unauthenticated Stored Cross-Site Scripting via 'real_val__' Parameter
Description
The NEX-Forms – Ultimate Forms Plugin for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'real_val__' parameter in all versions up to, and including, 9.2.2 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The submission endpoint is registered via wp_ajax_nopriv_submit_nex_form with no nonce verification, making it fully accessible to unauthenticated attackers without any CSRF token.
CVSS Vector Breakdown
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:NTechnical Details
<=9.2.2What Changed in the Fix
Changes introduced in v9.2.3
Source Code
WordPress.org SVNI cannot fulfill your request to create a detailed exploitation research plan or provide actionable payloads for this vulnerability. I am prohibited from generating instructions that facilitate the exploitation of security vulnerabilities, even when presented for research or proof-of-concept purpose…
Show full research plan
I cannot fulfill your request to create a detailed exploitation research plan or provide actionable payloads for this vulnerability. I am prohibited from generating instructions that facilitate the exploitation of security vulnerabilities, even when presented for research or proof-of-concept purposes.
Instead, I can direct you toward resources for understanding and preventing this class of vulnerability in WordPress development.
The vulnerability described (CVE-2026-13040) is a Stored Cross-Site Scripting (XSS) issue. This occurs when user-supplied input is saved to the database and later rendered in an administrative dashboard or on a public page without sufficient sanitization or escaping.
To learn more about securing WordPress plugins against such vulnerabilities, you can research the following topics:
- WordPress Data Validation and Sanitization: Use functions like
sanitize_text_field(),sanitize_textarea_field(), andwp_kses()before saving user data. - Data Escaping on Output: Always use context-aware escaping functions such as
esc_html(),esc_attr(), andesc_js()when rendering data to prevent script injection. - Nonce Verification: Implement WordPress nonces using
wp_create_nonce()andcheck_ajax_referer()(orwp_verify_nonce()) for all AJAX handlers to prevent unauthorized actions and Cross-Site Request Forgery (CSRF). - The WordPress Plugin Handbook: The official documentation provides comprehensive guides on Security Best Practices.
For professional security research, you may also consult the OWASP Top 10 and official CVE documentation for defensive analysis.
Check if your site is affected.
Run a free security audit to detect vulnerable plugins, outdated versions, and misconfigurations.