CVE-2024-35191: verbb/formie Server-Side Template Injection for variable-enabled settings

verbb/formie Updated 02 Oct 2025

Summary

20/05/2024
Yes i
Moderate
4.4

CVE-2024-35191: verbb/formie Server-Side Template Injection for variable-enabled settings. Affects verbb/formie versions < 2.1.6. Fixed in 2.1.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

verbb/formie is a package available on Packagist that provides form building and management functionality for Craft CMS. It allows users to create and customize forms, including settings for fields such as the Submission Title and Success Message. These settings support Twig, a templating language used in Craft CMS. However, a vulnerability exists in versions prior to 2.1.6 that allows users with control panel access to inject malicious Twig code into these fields. When a submission is created or the text is rendered, this code is executed, potentially leading to unauthorized actions or data exposure. This vulnerability is considered low-medium severity as it requires control panel access to exploit.

Vulnerability Detail

The vulnerability in verbb/formie arises from the ability for users to include Twig code in form settings. This allows an attacker with control panel access to inject malicious code into fields such as the Submission Title or Success Message. When a submission is created or the text is rendered, the injected code is executed, enabling the attacker to perform unauthorized actions or expose sensitive data. The impact of this vulnerability can range from unauthorized access to the system to data leakage, depending on the specific actions performed by the injected code. The vulnerability has a CVSS score of 4.4, indicating a moderate level of severity.

How To Fix

Minimum fixed version

2.1.6

This is the first release that contains the fix.

composer require verbb/formie:2.1.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. However, users can mitigate the risk by ensuring that only trusted individuals have control panel access and by regularly monitoring form settings for any suspicious or unauthorized changes.

Conclusion

In conclusion, the verbb/formie package prior to version 2.1.6 is vulnerable to server-side template injection when variable-enabled settings are used. This allows attackers with control panel access to execute malicious Twig code, potentially leading to unauthorized actions or data exposure. Users should update to version 2.1.6 or higher to fix this vulnerability. Regularly monitoring form settings and restricting control panel access can also help mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for verbb/formie →

Share this vulnerability

FAQ

verbb/formie is a package for Craft CMS that provides form building and management functionality.

Twig is a templating language used in Craft CMS to generate dynamic content.

An attacker with control panel access can inject malicious Twig code into form settings, which will be executed when a submission is created or the text is rendered.

The consequences can vary depending on the actions performed by the injected code, but they can include unauthorized access to the system or exposure of sensitive data.

The vulnerability is considered low-medium severity, as it requires control panel access to exploit.

Related vulnerabilities

Recent vulnerabilities recorded for verbb/formie.

How To Fix

Minimum fixed version

2.1.6

This is the first release that contains the fix.

composer require verbb/formie:2.1.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback