Executive brief
Silverstripe userforms is a widely-used CMS extension that allows administrators to create and manage user forms with email notifications. The email subject field lacks proper input validation, allowing authenticated CMS users to inject and execute arbitrary server-side code. An attacker with limited CMS access can fully compromise the server, steal sensitive data, or disrupt service availability.
Technical details
This vulnerability is a code injection flaw (CWE-94) resulting from improper input validation (CWE-20) in the userform email subject field. The vulnerable component accepts user-supplied input through the CMS interface without proper sanitization before it is used in dynamic code generation or execution. The attack requires network access and low-privilege CMS authentication; no user interaction is required. An authenticated attacker can craft a payload that executes with the privileges of the web application process, achieving complete confidentiality, integrity, and availability compromise. Patches are available in versions 6.4.9, 7.0.7, and 7.1.1, addressing the vulnerability by implementing proper input validation and neutralizing special elements in email subject handling.
Affected products
- Silverstripe userforms < 6.4.9
- Silverstripe userforms >= 7.0.0, < 7.0.7
- Silverstripe userforms >= 7.1.0, < 7.1.1
Timeline
- 2026-06-24: disclosed: Vulnerability published to GitHub Advisory Database
- 2026-06-24: patched: Patches released: version 6.4.9, 7.0.7, 7.1.1
- 2026-08-27: advisory: Advisory updated and reviewed on GitHub
References
- https://github.com/silverstripe/silverstripe-userforms/security/advisories/GHSA-g8wr-r2v2-vqc6
- https://github.com/silverstripe/silverstripe-userforms/pull/1441
- https://github.com/silverstripe/silverstripe-userforms/pull/1442
- https://github.com/silverstripe/silverstripe-userforms/commit/23c069866900c19b499bfa997d1e251e97491702
- https://github.com/silverstripe/silverstripe-userforms/commit/c55494ad7c717b199a3c1663b43a54db5d95604c
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/userforms/CVE-2026-54721.yaml