CVE-2026-13040

NEX-Forms <= 9.2.2 - Unauthenticated Stored Cross-Site Scripting via 'real_val__' Parameter

highImproper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
7.2
CVSS Score
7.2
CVSS Score
high
Severity
9.2.3
Patched in
1d
Time to patch

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:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Low
Confidentiality
Low
Integrity
None
Availability

Technical Details

Affected versions<=9.2.2
PublishedJuly 2, 2026
Last updatedJuly 3, 2026

What Changed in the Fix

Changes introduced in v9.2.3

Loading patch diff...

Source Code

WordPress.org SVN
Research Plan
Unverified

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 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(), and wp_kses() before saving user data.
  • Data Escaping on Output: Always use context-aware escaping functions such as esc_html(), esc_attr(), and esc_js() when rendering data to prevent script injection.
  • Nonce Verification: Implement WordPress nonces using wp_create_nonce() and check_ajax_referer() (or wp_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.