CVE-2026-137119 in BuddyForms Plugin
Summary
by MITRE • 11/26/2026
The BuddyForms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the '<form_field_slug>[] (array-valued post field)' parameter in all versions up to, and including, 2.10.10 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. This requires the BuddyForms form to have public submission enabled, which allows unauthenticated visitors to submit forms; the _wpnonce required by the form handler is printed in the public form HTML and is therefore accessible to any visitor, providing no meaningful authorization barrier.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
The vulnerability identified in the BuddyForms plugin for WordPress represents a significant security risk stemming from insufficient input sanitization and output escaping mechanisms within the application's core logic. Specifically, this flaw affects all versions up to and including 2.10.10, targeting the form_field_slug parameter which handles array-valued post fields. The root cause lies in the failure of the plugin to properly validate or encode user-supplied data before it is processed for storage within the WordPress database environment. This lack of rigorous validation allows malicious actors to inject arbitrary web scripts into the system's stored content, creating a persistent threat vector that does not require repeated exploitation attempts once the initial injection occurs.
From an operational perspective, this vulnerability facilitates Stored Cross-Site Scripting, commonly referred to as XSS Type II or Persistent XSS. Unlike reflected XSS attacks where the malicious script is executed immediately within the context of a user's session via a crafted link, stored vulnerabilities persist on the target server. When a victim with legitimate access to the WordPress site views any page containing the compromised form field data, their browser executes the injected scripts in the security context of that domain. This can lead to severe consequences such as session hijacking, where attackers steal authentication cookies to impersonate users; defacement of website content; or redirection to malicious sites designed for phishing or malware distribution. The impact is particularly acute because it affects all visitors who view the affected pages, potentially compromising a large number of user accounts and sensitive data associated with them.
The exploitability of this vulnerability is significantly heightened by the configuration requirements surrounding public form submissions within BuddyForms. For an unauthenticated attacker to successfully inject malicious payloads, the specific BuddyForm must have its submission settings configured to allow access from non-logged-in users. This design choice inadvertently exposes a critical authorization flaw because the _wpnonce value, which serves as a security token intended to prevent Cross-Site Request Forgery and unauthorized submissions, is embedded directly in the public HTML of the form page. Consequently, any visitor can extract this nonce value and use it to forge legitimate-looking requests that bypass authentication checks. This effectively neutralizes one of WordPress's primary defense mechanisms against unauthorized data manipulation, allowing attackers to submit forms with arbitrary content without needing valid credentials or complex social engineering tactics beyond initial access to the public-facing form page.
In terms of industry-standard classification frameworks, this vulnerability aligns closely with CWE-79: Improper Neutralization of Input During Web Page Generation, commonly known as Cross-site Scripting. The specific nature of storing malicious scripts in a database and executing them later corresponds directly to ATT&CK technique T1053.006, which covers Scheduled/Job Task Execution via Cron Jobs or similar mechanisms if the script triggers automated actions, though more broadly it falls under T1189 Drive-by Client Side Script Injection when considering the execution upon page load by victims. The failure to sanitize input before storage and escape output during rendering highlights a fundamental gap in secure coding practices regarding data lifecycle management within web applications.
To mitigate this vulnerability, immediate action is required for all administrators running BuddyForms versions 2.10.10 or earlier. The primary remediation step involves upgrading the plugin to version 2.10.11 or later, where developers have implemented proper input sanitization and output escaping functions compliant with WordPress coding standards. For environments where immediate patching is not feasible due to compatibility concerns, administrators should consider disabling public submission capabilities for forms that do not strictly require them. By restricting form access to authenticated users only, the exposure of the _wpnonce value to unauthenticated visitors is eliminated, thereby removing the attack vector entirely until a permanent fix can be applied. Additionally, implementing Content Security Policy headers can provide an additional layer of defense by restricting the sources from which scripts are allowed to execute, potentially mitigating the impact of any successfully injected payloads even if other controls fail.