CVE-2025-52122: Critical Server-side Template Injection Vulnerability in Solspace Craft Freeform Plugin

solspace/craft-freeform Updated 02 Oct 2025

Summary

27/08/2025
Yes i
Critical
9.8

CVE-2025-52122: The Freeform CraftCMS plugin contains an Server-side template injection (SSTI) vulnerability. Affects solspace/craft-freeform versions >= 5.0.0, < 5.10.16. Fixed in 5.10.16. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Solspace Craft Freeform plugin is a powerful tool designed for CraftCMS, enabling users to create and manage forms with ease. It offers features such as customizable form fields, submission management, and integration with various services. However, the plugin is vulnerable to a critical Server-side Template Injection (SSTI) vulnerability, which can lead to severe security risks for users who have access to form editing.

Vulnerability Detail

The vulnerability exists in versions 5.0.0 to before 5.10.16 of the Freeform plugin. It allows an attacker to inject arbitrary code through the form submission title, potentially compromising the server and exposing sensitive data. This vulnerability arises from improper handling of user input in templates, making it exploitable by any user with form editing permissions. The ramifications can be severe, including unauthorized access to server resources and data manipulation.

How To Fix

Minimum fixed version

5.10.16

This is the first release that contains the fix.

composer require solspace/craft-freeform:5.10.16

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

Workaround

If immediate updating is not possible, consider restricting access to form editing features to trusted users only. This can help minimize the risk of exploitation until the plugin is updated.

Conclusion

The Solspace Craft Freeform plugin has a critical vulnerability that can lead to severe security risks. It is essential to update to the latest version to protect your application from potential exploitation. Additionally, consider using tools like Vulert to monitor your dependencies for vulnerabilities.

See every vulnerability recorded for solspace/craft-freeform →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 9.8, indicating a critical level of severity.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The consequences include unauthorized code execution, data breaches, and potential server compromise, which can lead to significant security incidents.

Yes, Vulert can monitor your dependencies in real-time for open-source vulnerabilities using just the composer.lock file.

If you cannot update immediately, restrict access to form editing features to trusted users to reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for solspace/craft-freeform.

How To Fix

Minimum fixed version

5.10.16

This is the first release that contains the fix.

composer require solspace/craft-freeform:5.10.16

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