Potential Code Injection in Sprout Forms
Impact
A potential Server-Side Template Injection vulnerability exists in Sprout Forms which could lead to the execution of Twig code.
Patches
The problem is fixed inbarrelstrength/sprout-forms:v3.9.0 which upgrades to barrelstrength/sprout-base-email:v1.2.7
Workarounds
Users unable to upgrade should update any Notification Emails to use the "Basic Notification (Sprout Email)" template and avoid using the "Basic Notification (Sprout Forms)" template or any custom templates that display Form Fields.
References
- See the release notes in the CHANGELOG
- Credits to Paweł Hałdrzyński, Daniel Kalinowski from ISEC.PL for discovery and responsible disclosure
For more information
If you have any questions or comments about this advisory:
- Open an issue in the Sprout Forms repo
- Email us at sprout@barrelstrengthdesign.com
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | barrelstrength/sprout-base-email | < 1.2.7 | 1.2.7 |
| Composer package | barrelstrength/sprout-forms | < 3.9.0 | 3.9.0 |
References
- https://github.com/barrelstrength/craft-sprout-forms/security/advisories/GHSA-px8v-hxxx-2rgh
- https://nvd.nist.gov/vuln/detail/CVE-2020-11056
- https://github.com/barrelstrength/craft-sprout-base-email/commit/5ef759f4713ede6dbf77c9d9df9f992876e43a49
- https://github.com/barrelstrength/craft-sprout-forms/blob/v3/CHANGELOG.md#390---2020-04-09-critical
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L- Weakness (CWE)
CWE-74, CWE-94- Platform
- Composer
- Package
barrelstrength/sprout-base-email, barrelstrength/sprout-forms- Disclosed
- 08.05.2020
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-px8v-hxxx-2rgh - CC BY 4.0
Vulnerability history: barrelstrength/sprout-forms
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.