CVE-2026-26188: Freeform Craft Plugin CP UI (builder/integrations) has Stored Cross-Site Scripting (XSS) issue

Published Jan 22, 2026
·
Updated

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 dangerouslySetInnerHTML without sanitization. - Evidence: dangerouslySetInnerHTML on user-controlled properties in bundled CP JS at packages/plugin/src/Resources/js/client/client.js.

PoCs - Label-based XSS: 1. In Craft CP, create/edit a Freeform field and set its label to <img src=x onerror="alert('xss-label')">. 2. Open the form builder view containing the field. 3. Alert executes (stored XSS). - Integration icon SVG: 1. Set an integration "icon SVG" to <svg><script>alert('xss-icon')</script></svg>. 2. Open the integrations CP view. 3. 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 <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.

Other sources

Freeform Craft Plugin CP UI (builder/integrations) has Stored Cross-Site Scripting (XSS) issue

— Packagist

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.

— MITRE

Affected Software

4 affected componentsFixes available
Solspace Freeform<5.14.7
Solspace Freeform Craft Cms>=5.0.0<5.14.7
composer/solspace/craft-freeform>=5.0.0, <=5.14.6
composer/solspace/craft-freeform>=5.0.0<=5.14.6
5.14.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/solspace/craft-freeform to a version that resolves this vulnerability.

    Fixed in 5.14.7
  2. Upgrade

    Upgrade solspace/craft-freeform to a version that resolves this vulnerability.

    Fixed in 5.14.7
  3. Configuration

    Sanitize or HTML-encode user-controlled field labels, section labels, integration icons, short names, and WYSIWYG previews before passing them to dangerouslySetInnerHTML, or avoid dangerouslySetInnerHTML for labels, titles, and icons. On the server side, strip or escape disallowed tags when saving fields, integration metadata, and WYSIWYG content.

    Freeform Craft Plugin CP UI user-controlled string rendering = sanitize or HTML-encode before rendering
  4. Configuration

    Configure CSP to disallow inline scripts as a defense-in-depth measure.

    Content Security Policy inline script execution = disallowed
  5. Compensating control

    Restrict form-edit permissions to trusted administrators until the plugin is patched.

Event History

Jan 22, 2026
Advisory Published
via GitHub·09:41 PM
Data Sourced
via GitHub·09:41 PM
DescriptionWeaknessAffected Software
Data Sourced
via Packagist·09:41 PM
DescriptionSeverityAffected Software
Feb 12, 2026
CVE Published
via MITRE·10:55 PM
Data Sourced
via MITRE·10:55 PM
DescriptionWeakness
Data Sourced
via NVD·11:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-26188?

CVE-2026-26188 has been classified as a medium severity vulnerability due to its ability to allow stored cross-site scripting (XSS).

2

How do I fix CVE-2026-26188?

To fix CVE-2026-26188, update the Solspace Freeform plugin to version 5.14.8 or later.

3

What types of users are affected by CVE-2026-26188?

CVE-2026-26188 affects authenticated low-privilege users who can create or edit forms in the Solspace Freeform plugin.

4

What is the impact of exploiting CVE-2026-26188?

Exploiting CVE-2026-26188 can allow an attacker to inject arbitrary HTML or JavaScript into the Freeform Craft Plugin CP UI.

5

What software versions are affected by CVE-2026-26188?

CVE-2026-26188 affects Solspace Freeform versions up to and including 5.14.7.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203