CVE-2026-52889: Formie Craft CMS - Server-Side Template Injection
- Cve: CVE-2026-52889
- Name: Formie Craft CMS - Server-Side Template Injection
- Description: Formie is a Craft CMS plugin for creating forms. Prior to 3.1.27, Formie can pass request-derived Hidden field defaults such as HTTP User Agent, Referer URL, Current URL, Current URL without Query String, Query Parameter, and Cookie Value to Craft's Twig rendering layer during front-end form rendering. An unauthenticated attacker can place Twig syntax in one of these request-controlled inputs when a public form contains an affected Hidden field. Hidden::getFrontEndInputOptions() then assigns the value to defaultValue and calls renderString, causing server-side template evaluation rather than treating the request data as a plain string. Depending on the Craft site configuration and available Twig capabilities, exploitation can disclose sensitive information, modify application state, or achieve remote code execution. This issue is fixed in version 3.1.27.
- Impact: Unauthenticated attackers can execute arbitrary code, disclose sensitive information, or modify application state via server-side template injection.
- Remediation: Update to version 3.1.27 or later.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution, information_disclosure, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01274
- Epss percentile: 0.70653
- Assignee: [email protected]
- Published at: 2026-08-19T15:17:09Z
- Age in days: 97
- Modified at: 2026-09-10T21:18:16Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-52889
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| verbb:formie | < 3.1.27 | no | cna_alias_text | /v1/products/verbb/formie |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| verbb/formie | commit, fix, package, releases, security_advisory | yes | /v1/repositories/verbb/formie |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts