CVE-2026-26188: Freeform Craft Plugin CP UI (builder/integrations) has Stored Cross-Site Scripting (XSS) issue
Summary An authenticated, low-privilege user (able to create/edit forms) can inject arbitrary HTML/JS into the Craft Control Panel (CP) builder and integrations views. User-controlled form labels and integration metadata are rendered with dangerouslySetInnerHTML without sanitization, leading to stored XSS that executes when any admin views the builder/integration screens.
Published Jan 22, 2026 · Updated Feb 13, 2026
Affected packages
solspace/craft-freeform
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.0.0, <= 5.14.6
- Fixed in
- 5.14.7
- Check
composer show solspace/craft-freeform
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary An authenticated, low-privilege user (able to create/edit forms) can inject arbitrary HTML/JS into the Craft Control Panel (CP) builder and integrations views. User-controlled form labels and integration metadata are rendered with dangerouslySetInnerHTML without sanitization, leading to stored XSS that executes when any admin views the builder/integration screens.
Affected Product
- Ecosystem: Packagist (Craft CMS plugin)
- Package: solspace/craft-freeform
- Version: <= 5.14.6 (latest observed). Likely all 5.x until patched.
Details
- Root cause: Multiple user-controlled strings (field labels, section labels, integration icons, short names, WYSIWYG previews) are injected into React components using
dangerouslySetInnerHTMLwithout sanitization. - Evidence:
dangerouslySetInnerHTMLon user-controlled properties in bundled CP JS at [packages/plugin/src/Resources/js/client/client.js](packages/plugin/src/Resources/js/client/client.js#L1).
PoCs
- Label-based XSS:
- In Craft CP, create/edit a Freeform field and set its label to ``.
- Open the form builder view containing the field.
- Alert executes (stored XSS).
- Integration icon SVG:
- Set an integration "icon SVG" to
<svg><script>alert('xss-icon')</script></svg>. - Open the integrations CP view.
- Script executes.
Impact Arbitrary JS in admin CP; session/CSRF token theft; potential full admin takeover via DOM-driven actions.
Remediation
- Sanitize/HTML-encode all user-controlled strings before passing to
dangerouslySetInnerHTML, or avoid it for labels/titles/icons. - Server-side: strip/escape disallowed tags on save for fields, integration metadata, WYSIWYG content.
- Add regression tests with `` payloads to ensure no execution in builder/integration views.
Workarounds
- Restrict form-edit permissions to trusted admins only until patched.
- Consider CSP that disallows inline scripts (defense-in-depth only).
Credits
- Discovered by https://www.linkedin.com/in/praveenkavinda/ | Prav33N-Sec.
Credited to Pr4v33N-Sec, kjmartens.
References
- https://github.com/solspace/craft-freeform/security/advisories/GHSA-jp3q-wwp3-pwv9
- https://nvd.nist.gov/vuln/detail/CVE-2026-26188
- https://github.com/solspace/craft-freeform/commit/b9adad6cdf1eba5400aae8b1ae39bd7d4d33af5e
- https://github.com/solspace/craft-freeform/releases/tag/v5.14.7
- https://github.com/advisories/GHSA-jp3q-wwp3-pwv9
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-73858
Solspace Freeform: Limited Twig template injection via submitted field values
medium5.3Sep 23, 2026GHSA-44jg-mv3h-wj6g
solspace/craft-freeform Vulnerable to XSS in `PhpSpreadsheet` HTML Writer Due to Unsanitized Styling Data
low1.9Jan 15, 2026GHSA-58q2-9x27-h2jm
solspace/craft-freeform Has a DoS Vulnerability
low2.7Jan 15, 2026GHSA-rwr8-xrpw-9qf5
solspace/craft-freeform Exposed to Known Axios Vulnerabilities via Precompiled Assets
lowJan 15, 2026CVE-2025-52122
The Freeform CraftCMS plugin contains an Server-side template injection (SSTI) vulnerability
critical9.8Aug 27, 2025
