Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. verbb/formie
  4. ›
  5. CVE-2026-45697

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

May 18, 2026 (updated June 9, 2026)

  • Unauthenticated users could submit crafted values into Hidden fields (with Default value → Custom) that were evaluated as Twig during submission handling, which could lead to serious compromise of the Craft site (depending on template/sandbox behavior).
  • Sites with public Formie forms that include at least one Hidden field with that configuration.
  • No CP login for the reported chain.

References

  • github.com/advisories/GHSA-x7m9-mwc2-g6w2
  • github.com/verbb/formie/commit/f690d5623163ce2a95da305238d6367575486ee3
  • github.com/verbb/formie/releases/tag/2.2.20
  • github.com/verbb/formie/releases/tag/3.1.24
  • github.com/verbb/formie/security/advisories/GHSA-x7m9-mwc2-g6w2
  • nvd.nist.gov/vuln/detail/CVE-2026-45697

Code Behaviors & Features

Detect and mitigate CVE-2026-45697 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.2.20, all versions starting from 3.0.0-beta.1 before 3.1.24

Fixed versions

  • 2.2.20
  • 3.1.24

Solution

Upgrade to versions 2.2.20, 3.1.24 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
  • CWE-693: Protection Mechanism Failure
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/verbb/formie/CVE-2026-45697.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:20 +0000.