CVE-2026-52889
published critical CVSS 3.1 · 9.8Formie: Server-Side Template Injection in Formie Hidden field defaults
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| verbb | — | formie< 3.1.27 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| verbb | formie | < 3.1.27 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-1336 CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
References
3Provider assertions
2GitHub_M · cna
Formie: Server-Side Template Injection in Formie Hidden field defaults
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 766f9fbd929ca09749722e81d60d089016c3a431beba2199620ead38434150bf
- Ingested
- 23 Sep 2026, 09:19:36 UTC
- Source record
- Official CVE record