Description
The Contact Form by Supsystic plugin for WordPress is vulnerable to Server-Side Template Injection (SSTI) leading to Remote Code Execution (RCE) in all versions up to, and including, 1.7.36. This is due to the plugin using the Twig `Twig_Loader_String` template engine without sandboxing, combined with the `cfsPreFill` prefill functionality that allows unauthenticated users to inject arbitrary Twig expressions into form field values via GET parameters. This makes it possible for unauthenticated attackers to execute arbitrary PHP functions and OS commands on the server by leveraging Twig's `registerUndefinedFilterCallback()` method to register arbitrary PHP callbacks.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| supsysticcom | Contact Form by Supsystic | ≤ 1.7.36 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Supsystic Contact Form Wordpress Plugin SSTI RCE
exploit/multi/http/wp_plugin_supsystic_contact_form_rce
Exploit-DB 1
- WordPress Plugin Supsystic Contact Form 1.7.36 - SSTI EDB-52564 · webapps · May 14, 2026
GitHub 3 repositories
-
dann3xplo1t/CVE-2026-4257 ★ 1 · Jul 9, 2026
CVE-2026-4257 - Contact Form by Supsystic <= 1.7.36 # SSTI to RCE
-
shootcannon/CVE-2026-4257 ★ 0 · May 11, 2026
SSTI contact form to rce
-
bootstrapbool/cve-2026-4257 ★ 0 · Apr 5, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- WordPress Contact Form by Supsystic - Server-Side Template Injection http/cves/2026/CVE-2026-4257.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/415c9658-bfb2-453b-a697-c63c08b0ca61?source=cve
- https://plugins.trac.wordpress.org/browser/contact-form-by-supsystic/tags/1.7.36/modules/forms/views/forms.php#L323
- https://plugins.trac.wordpress.org/changeset/3491826/contact-form-by-supsystic