Loading...
Skip to main content

CVE-2026-52889 — Vulnerability in verbb/formie — CVE Details

CRITICAL

Formie Hidden field defaults vulnerable to Server-Side Template Injection

Published July 6, 2026Updated September 10, 2026Source: osv

Summary

## Summary Formie Hidden fields could evaluate request-derived values as Twig during front-end form rendering. When a Hidden field used a dynamic default value such as HTTP User Agent, Referer URL, Current URL, Query Parameter, or Cookie Value, the value was copied from the incoming request and later passed to Craft’s Twig rendering layer. This allowed an unauthenticated attacker to provide Twig syntax in request-controlled input and have it evaluated server-side when the form was rendered. ## Affected Versions `verbb/formie` for Craft 5: - Affected: >= 3.0.0-beta.1, <= 3.1.26 - Patched: 3.1.27 ## Impact An unauthenticated attacker could trigger server-side template evaluation by visiting a public form containing a Hidden field configured with a request-derived default value. Because Craft’s normal Twig environment exposes application objects, this may lead to disclosure of sensitive information, modification of application state, or remote code execution depending on the site configuration and available Twig capabilities. ## Technical Details The issue exists in the Hidden field front-end render path. Request-derived Hidden field defaults were assigned to the field’s defaultValue, then rendered via Twig in `Hidden::getFrontEndInputOptions()`. The fix ensures Twig rendering is only performed for the custom default option, where the template source is admin-authored. Request-derived default options are now treated as plain strings. ## Patches Update to Formie 3.1.27 or later. ## Workarounds Until patched, avoid using request-derived Hidden field defaults on public forms, including: - HTTP User Agent - HTTP Refer URL - Current URL - Current URL without Query String - Query Parameter - Cookie Value Alternatively, remove affected Hidden fields from public forms until the update is applied. ## Credit Name: Yanchon918s Email: [ao9s@ao9s.net](mailto:ao9s@ao9s.net)

Advisory Timeline

  • First published July 6, 2026 (98 days ago).
  • Last revised September 10, 2026 — 65 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update verbb/formie to 3.1.27 or later
composer require "verbb/formie:^3.1.27"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: packagist (1).

PackageEcosystemAffectedFixed In
verbb/formie
packagist
1.0.0, 1.0.1, 1.0.2, 1.0.3 (+412 more)3.1.27

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-52889?
Formie Hidden field defaults vulnerable to Server-Side Template Injection This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2026-52889?
CVE-2026-52889 affects verbb/formie. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-52889 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-565m-g33j-jq96

Related CVEs

  • CVE-2026-107845
    CRITICAL

    Contao: Cross-site scripting in the comments bundle

  • CVE-2026-92161
    CRITICAL

    FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider

  • CVE-2026-45697
    CRITICAL

    Formie: Pre-authenticated server-side template injection in Hidden fields

  • CVE-2026-76087
    HIGH

    Formie: Unauthenticated users can overwrite incomplete submissions via submit action

  • CVE-2026-76086
    HIGH

    Formie: Integration form-settings action allows SSRF and exfiltration of stored integration credentials

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies