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.
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.
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| Composer-Paket | solspace/craft-freeform | >= 5.0.0, < 5.14.7 | 5.14.7 |
Verweise
- 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
- https://github.com/solspace/craft-freeform/releases/tag/v5.14.7
- CVSS-Vektor
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- Schwäche (CWE)
CWE-79- Plattform
- Composer
- Paket
solspace/craft-freeform- Veröffentlicht
- 22.01.2026
- Aktualisiert
- 11.10.2026 10:22
Quellen und Lizenzen
OSV / GitHub Advisory Database - GHSA-jp3q-wwp3-pwv9 - CC BY 4.0
Schwachstellenhistorie: solspace/craft-freeform
Alle veröffentlichten Schwachstellen dieses Pakets (Composer-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 6
- Erste → letzte
- 08.2025 09.2026
- Ohne Fix
- 0
- In Angriffen ausgenutzt
- 0
Verteilung nach Schweregrad
- Kritisch 1
- Mittel 1
- Niedrig 4
Veröffentlichungen pro Jahr
- 2025: 1
- 2026: 5
-
Freeform Craft Plugin CP UI (builder/integrations) has Stored Cross-Site Scripting (XSS) issue dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.