mediumCVSS 5.3Vulnerability

CVE-2026-73858

### Summary 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. ### Details **Plugin:** Solspace Freeform **Affected versions:** Freeform 5.0.0 through 5.10.13 **CMS:** Craft CMS **Authentication required:** None **Attack vector:** Public Freeform form submission Submitted field values were passed through Freeform’s isolated Twig renderer. As a result, Twig expressions included in submitted values could be evaluated server-side and reflected in the HTTP response. The isolated Twig context appears to limit the available functions and globals. Confirmed accessible values were limited to PHP/core constants and Craft bootstrap constants such as: ```twig {{ constant('PHP_VERSION') }} {{ constant('PHP_OS') }} {{ constant('CRAFT_BASE_PATH') }} {{ constant('CRAFT_VENDOR_PATH') }} ``` Testing did not confirm access to: ```text craft craft.app alias() getenv() database credentials mailer credentials Craft security key Craft license key environment variables ``` ### Proof of Concept 1. Submit a public Freeform form. 2. Inject the following payload into an email field: ```twig {{ constant('PHP_VERSION') }}@example.com ``` The response may reflect the evaluated PHP version, for example: ```html value="[email protected]" ``` 3. Inject the following payload into a text field: ```twig {{ con

Properties

ghsa_id
GHSA-gxrg-x694-283w
severity
medium
summary
Solspace Freeform: Limited Twig template injection via submitted field values
cvss_score
5.3
cve_id
CVE-2026-73858
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
signal_observed_at
2026-09-23T22:45:22+00:00
is_ghsa_only
false
ghsa_published
2026-09-23T14:31:10Z
source_url
https://github.com/advisories/GHSA-gxrg-x694-283w
ghsa_updated
2026-09-23T14:31:10Z

Related Entities (4)

REPORTED_BY (1)

[Source]GitHub Advisory Database

VULNERABLE_TO (1)

[Software]composer/solspace/craft-freeform

AFFECTS (1)

[Software]composer/solspace/craft-freeform

HAS_WEAKNESS (1)

[Weakness]Improper Neutralization of Special Elements Used in a Template Engine

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-73858 (CVSS 5.3) — Ninja Signal Threat Intelligence | Ninja Signal