# Solspace Freeform: Limited Twig template injection via submitted field values

Advisory record · `GHSA-gxrg-x694-283w`

- **Identifiers:** `GHSA-gxrg-x694-283w` · `CVE-2026-73858` · `PKSA-x44x-t9qv-gv3x`
- **State:** Confirmed
- **Severity:** CVSS 5.3 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-1336](https://cwe.mitre.org/data/definitions/1336.html)
- **Tags:** [Code injection](https://agentprime.io/advisories/tag/code-injection.md)
- **Published:** 23 Sept 2026
- **Updated:** 23 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 23 Sept 2026, 14:31 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `solspace/craft-freeform` (Packagist): affected `>=5.0.0, <5.10.14`; fixed in `5.10.14`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Solspace Freeform for Craft CMS, packaged as solspace/craft-freeform, is affected from version 5.0.0 before 5.10.14, and the fix is in 5.10.14. An unauthenticated user who can submit a public Freeform form can have Twig expressions in submitted field values evaluated on the server when the values are rendered back in the response. The source reports only limited disclosure, such as the PHP version and absolute filesystem paths, and found no evidence of credential exposure or remote code execution. Upgrade to 5.10.14 or later.

Written 31 Oct 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.3 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0055, the 46th percentile, on 10 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 13:55 UTC: First seen by agentprime
- 31 Oct 2026, 13:55 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-gxrg-x694-283w)

## Sources

- [GitHub Advisory Database: GHSA-gxrg-x694-283w](https://github.com/advisories/GHSA-gxrg-x694-283w)
- [OSV: GHSA-gxrg-x694-283w](https://osv.dev/vulnerability/GHSA-gxrg-x694-283w)
- <https://github.com/solspace/craft-freeform/security/advisories/GHSA-gxrg-x694-283w>
- <https://github.com/solspace/craft-freeform/pull/1986>
- <https://github.com/solspace/craft-freeform/commit/5f7555320635f1cd3b4c478aa0b58e8c3144313b>
- <https://github.com/solspace/craft-freeform>
- <https://github.com/solspace/craft-freeform/releases/tag/v5.10.14>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-gxrg-x694-283w>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-gxrg-x694-283w/>. Everything for agents: <https://agentprime.io/llms.txt>.
