---
id: CVE-2026-52889
title: Formie is a Craft CMS plugin for creating forms
summary: >-
  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 Valu…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-1336
vendor: verbb
product: verbb/formie
affected:
  - verbb/formie < 3.1.27
patched:
  - verbb/formie 3.1.27
published: '2026-08-19'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T21:18:16.573'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-52889'
references:
  - url: >-
      https://github.com/verbb/formie/commit/d3b9d15290405e484e3b5c91c5d8fab93047f9b2
    label: security-advisories@github.com
  - url: 'https://github.com/verbb/formie/releases/tag/3.1.27'
    label: security-advisories@github.com
  - url: 'https://github.com/verbb/formie/security/advisories/GHSA-565m-g33j-jq96'
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-565m-g33j-jq96'
tags:
  - nvd
  - ghsa
  - composer
epss: 0.00682
epssPercentile: 0.51046
aliases:
  - GHSA-565m-g33j-jq96
ecosystem: composer
ingestedAt: '2026-07-06T17:03:25.191Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-52889)

Affected packages:

- `verbb/formie < 3.1.27`

Patched in:

- `verbb/formie 3.1.27`

Source: https://github.com/advisories/GHSA-565m-g33j-jq96
