CVE-2026-73858: Solspace Freeform: Limited Twig template injection via submitted field values
A limited server-side Twig template injection issue was identified in Solspace Freeform for Craft CMS. In affected versions, submitted form field values could be evaluated as Twig in certain rendering contexts.
Unauthenticated users could submit Twig expressions through public Freeform forms and have those expressions evaluated when the submitted values were rendered back into the form response. Confirmed impact includes disclosure of limited server/environment information, such as the PHP version and absolute filesystem paths.
No evidence was found that this issue allowed access to Craft globals, environment variables, database credentials, mailer credentials, security keys, or remote code execution in the tested environment.
References
- github.com/advisories/GHSA-gxrg-x694-283w
- github.com/solspace/craft-freeform/commit/5f7555320635f1cd3b4c478aa0b58e8c3144313b
- github.com/solspace/craft-freeform/pull/1986
- github.com/solspace/craft-freeform/releases/tag/v5.10.14
- github.com/solspace/craft-freeform/security/advisories/GHSA-gxrg-x694-283w
- nvd.nist.gov/vuln/detail/CVE-2026-73858
Code Behaviors & Features
Detect and mitigate CVE-2026-73858 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →