CVE-2020-28246: Server-Side Template Injection in formio

formio Updated 02 Oct 2025

Summary

03/06/2022
No i
Critical
9.8

CVE-2020-28246: Server-Side Template Injection in formio. Affects formio versions < 2.0.0. No fix is published. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Form.io is an open-source JavaScript framework that allows developers to build forms and generate form-based applications. It provides a user-friendly interface for creating and managing forms, as well as handling form submissions. The vulnerability in Form.io version 2.0.0 allows for Server-Side Template Injection (SSTI) during the deletion of the default Email template URL.

Vulnerability Detail

The Server-Side Template Injection (SSTI) vulnerability in Form.io 2.0.0 enables an attacker to execute remote code by injecting malicious templates. This can lead to unauthorized access, data leakage, or even complete compromise of the affected system. The vulnerability arises due to improper input validation and sanitization during the deletion process of the default Email template URL.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, it is advised to disable the deletion functionality of the default Email template URL in Form.io until the vulnerability is patched. This can be achieved by modifying the code responsible for handling the deletion process. Here is an example of how to disable the deletion functionality:

// Disable deletion of default Email template URL
function deleteDefaultEmailTemplate() {
  // Add code here to prevent deletion
}

Conclusion

In conclusion, the Server-Side Template Injection vulnerability in Form.io version 2.0.0 can lead to remote code execution and compromise of the affected system. It is crucial to update to a patched version or apply the recommended workaround to mitigate the vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for formio →

Share this vulnerability

FAQ

Form.io is an open-source JavaScript framework for building forms and form-based applications. It provides a user-friendly interface for creating and managing forms, as well as handling form submissions.

Server-Side Template Injection (SSTI) is a vulnerability that allows an attacker to inject malicious templates into a server-side template engine. This can lead to remote code execution and potential compromise of the affected system.

The vulnerability in Form.io occurs due to improper input validation and sanitization during the deletion process of the default Email template URL. This allows an attacker to inject malicious templates and execute remote code.

The potential consequences of this vulnerability include unauthorized access to sensitive information, data leakage, and complete compromise of the affected system. An attacker can execute arbitrary code, leading to various malicious activities.

Yes, the developers of Form.io have released a fix in a subsequent version that addresses the Server-Side Template Injection vulnerability. It is recommended to update to the latest version to mitigate the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for formio.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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