CVE-2026-126988 in Database for Contact Form 7info

Summary

by MITRE • 11/28/2026

The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'post_id' parameter in all versions up to, and including, 1.5.6 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 malicious payload is stored via the unauthenticated Elementor Pro form submission endpoint and is surfaced to administrators through the 'Entries by Same User' box, which correlates entries by the attacker-controlled vx_user cookie value with no form restriction, allowing a payload-carrying entry to be reached from an ordinary clean entry. Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/28/2026

The Database for Contact Form 7, WPforms, and Elementor forms plugin for WordPress contains a critical stored cross-site scripting (XSS) vulnerability affecting all versions up to and including 1.5.6. This flaw stems from insufficient input sanitization and output escaping within the application code, specifically related to how form data is processed and displayed. The core technical issue lies in the handling of the post_id parameter during form submissions. When an unauthenticated user submits a form through the Elementor Pro endpoint, the system fails to adequately validate or escape special characters associated with this parameter before storing it in the database. Consequently, malicious scripts can be embedded directly into the stored entry data without triggering immediate validation errors, allowing persistent code injection that remains dormant until accessed by another party.

The operational impact of this vulnerability is significant because it enables unauthenticated attackers to inject arbitrary web scripts into pages viewed by site administrators. The attack vector relies on a specific interaction pattern involving the Entries feature within the plugin interface. An attacker first submits a form containing their malicious payload via the public-facing submission endpoint. Later, when an administrator views entries in the admin dashboard, they may encounter a section labeled Entries by Same User. This feature correlates database entries based on the value of the vx_user cookie set during previous interactions. Because this correlation mechanism does not enforce strict restrictions or re-validate the data before display, it surfaces the previously injected payload to the administrator's browser. The vulnerability is classified under CWE-79 Improper Neutralization of Input During Web Page Generation and aligns with MITRE ATT&CK technique T1059 Command and Scripting Interpreter, as the executed scripts can facilitate further malicious actions such as session hijacking or administrative takeover.

Successful exploitation requires a two-step process that necessitates an action by an administrator after the initial injection. The attacker cannot trigger the execution of their payload on their own account; instead, they must wait for a privileged user to view the specific entry through the Entries by Same User interface. This dependency means the attack is not fully automated but relies on social engineering or timing to ensure an admin interacts with the compromised data. Once triggered, the malicious script executes in the context of the administrator's session, potentially allowing the attacker to steal cookies, perform actions as the admin, or redirect users to phishing sites. The lack of output escaping ensures that any HTML or JavaScript content within the post_id parameter is rendered by the browser rather than treated as plain text.

Mitigation strategies should prioritize immediate patching and enhanced input validation. Administrators running affected versions must upgrade to a patched release where proper sanitization functions are applied at both the entry point and during output rendering. In addition to updating, implementing strict Content Security Policy headers can help mitigate the impact of any residual XSS vulnerabilities by restricting script execution sources. Furthermore, developers should enforce allowlist-based validation for form parameters like post_id to ensure only expected data types are processed. Regular security audits focusing on input handling in WordPress plugins are essential to prevent similar flaws where unauthenticated users can influence administrative interfaces through stored payloads.

Responsible

Wordfence

Reservation

11/12/2026

Disclosure

11/28/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!