5.1medium
Solspace Freeform plugin affected by Stored Cross-Site Scripting (XSS) in Freeform Craft Plugin CP UI (builder/integrations)
- Severity
- 5.1medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.31% (higher than 25% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jp3q-wwp3-pwv9
Description
Solspace Freeform plugin for Craft CMS 5.x is a super flexible form-building tool. 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. This vulnerability is fixed in 5.14.7.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| solspace craft-freeform | >= 5.0.0, < 5.14.7 | CVE List |
| solspace/craft-freeform (Packagist) | from 5.0.0 before 5.14.7 | GitHub Advisory Database |
| solspace freeform | from 5.0.0 before 5.14.7 | NVD |
All scores
| GitHub_M | 5.1medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| GitHub | low CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
Solspace Freeform plugin for Craft CMS 5.x is a super flexible form-building tool. 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. This vulnerability is fixed in 5.14.7.
GitHub Advisory Database
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.
PoCs
- Label-based XSS:
- In Craft CP, create/edit a Freeform field and set its label to
<img src=x onerror="alert('xss-label')">. - Open the form builder view containing the field.
- Alert executes (stored XSS).
- In Craft CP, create/edit a Freeform field and set its label to
- Integration icon SVG:
- Set an integration "icon SVG" to
<svg><script>alert('xss-icon')</script></svg>. - Open the integrations CP view.
- Script executes.
- Set an integration "icon SVG" to
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
<img onerror>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.
NVD (es)
El plugin Solspace Freeform para Craft CMS 5.x es una herramienta de creación de formularios súper flexible. Un usuario autenticado y con bajos privilegios (capaz de crear/editar formularios) puede inyectar HTML/JS arbitrario en las vistas del constructor y de integraciones del Panel de Control (CP) de Craft. Las etiquetas de formulario controladas por el usuario y los metadatos de integración se renderizan con dangerouslySetInnerHTML sin sanitización, lo que lleva a un XSS almacenado que se ejecuta cuando cualquier administrador ve las pantallas del constructor/integración. Esta vulnerabilidad está corregida en la versión 5.14.7.
References
| https://github.com/solspace/craft-freeform/security/advisories/GHSA-jp3q-wwp3-pwv9 | exploit, vendor-advisory, web | |
| https://github.com/solspace/craft-freeform/commit/b9adad6cdf1eba5400aae8b1ae39bd7d4d33af5e | patch, web | |
| https://github.com/solspace/craft-freeform/releases/tag/v5.14.7 | product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-26188 | advisory | |
| https://github.com/solspace/craft-freeform | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-26188 changed 2026-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jp3q-wwp3-pwv9 changed 2026-02-13 | CC-BY-4.0 |
| NVD | CVE-2026-26188 changed 2026-06-17 | Public domain |