CVE-2026-8172: Reflected XSS in Simple Basic Contact Form WordPress Plugin
The Simple Basic Contact Form WordPress plugin fails to properly sanitize user input when displaying form validation errors, allowing attackers to inject malicious JavaScript code into the page. An attacker can craft a malicious link or form that, when visited by a site user, executes arbitrary JavaScript in that user's browser within the context of the vulnerable website. This type of attack, known as Reflected Cross-Site Scripting (XSS), can be used to steal session cookies, perform actions on behalf of the user, or redirect them to phishing sites.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.1 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- Weaknesses (CWE)
- —
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-23 / 2026-06-23
NVD description (verbatim)
The Simple Basic Contact Form WordPress plugin through 20250114 does not escape user-supplied input before reflecting it into the contact form output on validation errors, leading to a Reflected Cross-Site Scripting vulnerability that unauthenticated attackers can exploit against site visitors via a crafted link or cross-site form submission.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-8172 is a Reflected XSS vulnerability in the Simple Basic Contact Form WordPress plugin affecting versions through 20250114. The vulnerability exists because user-supplied input is reflected directly into the contact form output during validation error handling without proper HTML escaping or sanitization. Unauthenticated attackers can exploit this by crafting URLs or form submissions containing JavaScript payloads. The attack requires user interaction (clicking a link or submitting a form) but bypasses WordPress's typical authentication requirements. The vulnerability carries a CVSS 3.1 score of 7.1 (HIGH) with a vector indicating network-based attack, low complexity, no privileges required, and impact to confidentiality, integrity, and availability across security boundaries.
Business impact
For WordPress site operators running this plugin, the impact includes potential compromise of visitor sessions, unauthorized actions performed in users' browsers, credential theft via phishing, and reputational damage if the site is used to distribute malicious content to its users. Organizations relying on contact forms for customer communication face elevated risk that legitimate inquiries could be replaced with malicious payloads, and visitors may lose trust if their browsers are compromised through the site. The cross-site nature of the vulnerability means the attacker's origin is different from the vulnerable site, making detection and attribution more difficult.
Affected systems
The Simple Basic Contact Form WordPress plugin is affected through version 20250114. The vulnerability impacts any WordPress installation using this plugin with that version or earlier. Sites using this plugin are exposed regardless of other security measures, as the vulnerability requires no special WordPress privileges or configuration—only that the plugin is active and receives form submissions. The risk is particularly acute for public-facing sites where anonymous users can trigger the contact form validation pathway.
Exploitability
This vulnerability is straightforward to exploit. An attacker needs only to craft a URL or HTML form containing JavaScript code as input parameters, then trick a site visitor into clicking the link or submitting the form. No authentication is required, and the attack is low-complexity. The CVSS vector reflects that user interaction is necessary (a visitor must click or submit), but achieving that interaction is trivial via social engineering, email campaigns, or embedded links. The vulnerability has not been added to the CISA Known Exploited Vulnerabilities (KEV) catalog as of the publication date, but that does not imply the vulnerability is difficult to exploit—only that it has not yet been observed in active, coordinated exploitation campaigns tracked by federal authorities.
Remediation
The immediate remediation is to update the Simple Basic Contact Form plugin to a version newer than 20250114 that includes input validation and output escaping fixes. Site operators should verify the availability of a patched version from the WordPress plugin repository and apply it as soon as possible. Until a patch is confirmed available, administrators should consider disabling the plugin if alternative contact methods are available, or implement a Web Application Firewall (WAF) rule to block requests containing common XSS payloads to the plugin's form handler.
Patch guidance
Apply the latest available version of the Simple Basic Contact Form plugin from the WordPress plugin repository, ensuring you are updating beyond version 20250114. Before updating, test in a staging environment to confirm no site functionality is affected. Verify in the plugin's changelog that the version addresses input sanitization and output escaping. If no patched version is immediately available, consult the plugin's issue tracker or security advisory for a timeline. Monitor the WordPress plugin security advisories for any additional guidance from the plugin developers.
Detection guidance
Monitor web server access logs and WAF logs for unusual query parameters or POST data containing common XSS patterns (script tags, event handlers, encoded payloads) directed at pages served by the Simple Basic Contact Form plugin. WordPress security plugins with XSS detection capabilities can flag suspicious input in real-time. Additionally, search your site's contact form submissions for signs of injection attempts—any records containing HTML tags, JavaScript, or encoded content should be treated as suspicious. Client-side monitoring via browser console inspection during user sessions may reveal unexpected scripts being executed on the contact form page.
Why prioritize this
This vulnerability rates HIGH priority because it is network-accessible, requires minimal attacker effort, affects unauthenticated users, and can compromise site visitor security. Although it requires user interaction, that interaction is easily engineered. The cross-site scope increases the attack surface, making it attractive for large-scale campaigns targeting multiple sites running the same plugin. The fact that it is not yet in the KEV catalog does not reduce urgency; it reflects only the maturity of tracking, not risk level. Site administrators should treat this as a critical update.
Risk score, explained
The CVSS 3.1 score of 7.1 (HIGH) reflects the combination of several risk factors: network-accessible attack vector (AV:N), low attack complexity (AC:L), no authentication required (PR:N), user interaction needed (UI:R), and impact across security boundaries (S:C) with low-level impacts to confidentiality, integrity, and availability (C:L/I:L/A:L). The score appropriately captures that while individual compromises may be limited in scope, the ease of exploitation and broad applicability to all site visitors places it in the HIGH severity category. The user interaction requirement prevents a higher score, but should not be mistaken for a weakness in practice—social engineering makes this requirement trivial to overcome at scale.
Frequently asked questions
Can this vulnerability be exploited against my WordPress users without them doing anything?
No. The attack requires a user to interact with a malicious link or form, typically by clicking a crafted URL or submitting a form with malicious input. However, such interactions are easily engineered through email, social media, or embedded links on other pages, so the interaction requirement should not be considered a strong defense.
What exactly can an attacker do if they successfully exploit this XSS vulnerability?
An attacker can execute arbitrary JavaScript in the victim's browser within the context of your website. This allows them to steal session cookies, perform actions as the logged-in user, inject phishing content, or redirect the user to a malicious site. The impact depends on what user accounts interact with the form and what sensitive data or actions are available on your site.
If I disable the contact form temporarily, am I protected?
If the plugin is disabled entirely, the vulnerability cannot be exploited. However, disabling it removes contact form functionality. A better approach is to update to a patched version as soon as it becomes available, which maintains functionality while closing the security gap.
Why is this vulnerability not in the CISA KEV catalog yet?
The KEV catalog tracks vulnerabilities that have been exploited in active, coordinated campaigns and confirmed by federal authorities. The absence from KEV means this specific vulnerability has not yet appeared in such tracked campaigns—it does not indicate the vulnerability is difficult to exploit or lower priority. Site operators should treat this as urgent regardless of KEV status.
This analysis is based on the vulnerability data available as of the publication date. Patch availability and vendor guidance may change; site administrators should verify the latest version status directly with the WordPress plugin repository and the plugin's official sources. This information is provided for educational and defensive purposes. No exploit code or weaponized proof-of-concept is included. Organizations should conduct their own risk assessment and testing in a non-production environment before deploying patches. SECs analysis reflects current threat intelligence but does not constitute a guarantee of security outcomes. Source: NVD (public-domain), retrieved 2026-07-29. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2016-20062HIGHSQL Injection in Simply Poll 1.4.1 WordPress Plugin - Unauthenticated Data Theft
- CVE-2016-20063HIGHSQL Injection in Single Personal Message 1.0.3 – Credential & Data Theft Risk
- CVE-2016-20065HIGHUnauthenticated SQL Injection in Product Catalog 8 WordPress Plugin
- CVE-2016-20066HIGHWordPress CP Polls 1.0.8 Persistent XSS Vulnerability
- CVE-2016-20068HIGHUnauthenticated SQL Injection in WordPress Booking Calendar Contact Form 1.0.23
- CVE-2016-20069HIGHUnauthenticated SQL Injection in WordPress Booking Calendar Contact Form 1.0.23
- CVE-2016-20071HIGHCritical SQL Injection in WordPress 404 Redirection Manager Plugin v1.0
- CVE-2016-20072HIGHBBS e-Franchise WordPress Plugin SQL Injection – Remote Data Exfiltration Risk