Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-105090 Overview
CVE-2026-105090 is a stored cross-site scripting (XSS) vulnerability in Formbricks caused by broken access control [CWE-863]. The flaw affects Formbricks versions before 5.4.4 and 6.x before 6.0.1. The survey-level Custom Head Scripts feature failed to enforce the documented Manage permission boundary. A workspace member holding only readWrite permission could configure Custom Head Scripts on a survey, an operation the documentation restricts to the Manage role. Injected scripts execute in the browser session of any authenticated user who opens the affected survey.
Critical Impact
A lower-privileged workspace member can execute arbitrary JavaScript in the session of higher-privileged users who view affected surveys.
Affected Products
- Formbricks versions prior to 5.4.4
- Formbricks 6.x versions prior to 6.0.1
- Self-hosted and cloud Formbricks deployments exposing the Custom Head Scripts feature
Discovery Timeline
- 2026-10-03 - CVE-2026-105090 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-105090
Vulnerability Analysis
The vulnerability combines broken access control with a stored XSS sink. Formbricks documentation specifies that the survey Custom Head Scripts feature is restricted to users holding the Manage role. The backend did not enforce this restriction, accepting update requests from members with only readWrite permission. Once stored, the configured script tags are embedded in the rendered survey page and executed in the browser of any authenticated visitor. The result is a privilege escalation path: a low-privilege member can target workspace administrators or respondents, hijacking their session context, exfiltrating tokens, or performing actions on their behalf.
Root Cause
The root cause is a missing authorization check on the API handler responsible for updating survey Custom Head Scripts. The permission boundary described in product documentation existed only at the UI level and was not validated server-side. This is a classic authorization gap [CWE-863] where the application correctly identifies the actor but applies insufficient permission logic before mutating state.
Attack Vector
An authenticated attacker with readWrite membership in a Formbricks workspace crafts an API request to set Custom Head Scripts on a survey they can edit. The attacker supplies arbitrary JavaScript payloads inside script tags. When any other authenticated user, including workspace administrators, opens the survey in the Formbricks web application, the injected scripts execute in their browser session. The vector is network-based and requires user interaction in the form of opening the targeted survey.
See the Sec4Check CVE Analysis and the upstream GitHub Pull Request for a detailed walkthrough.
Detection Methods for CVE-2026-105090
Indicators of Compromise
- Survey records whose Custom Head Scripts field contains <script> tags, event handlers, or references to external domains not approved by the organization.
- Audit log entries showing survey updates to the Custom Head Scripts field performed by accounts without the Manage role.
- Outbound requests from administrator browsers to unknown domains shortly after opening a Formbricks survey.
Detection Strategies
- Query the Formbricks database for surveys where the Custom Head Scripts property is non-empty and review each entry for untrusted content.
- Correlate API request logs for the survey update endpoint with the role of the acting user, flagging mutations by non-Manage members.
- Inspect browser Content Security Policy (CSP) violation reports originating from Formbricks survey pages.
Monitoring Recommendations
- Enable verbose audit logging on survey configuration changes and forward events to a central SIEM.
- Alert on any addition or modification of Custom Head Scripts regardless of role until all instances are patched.
- Monitor for anomalous session activity, including token reuse from unexpected IP addresses, following administrator access to shared surveys.
How to Mitigate CVE-2026-105090
Immediate Actions Required
- Upgrade Formbricks to version 5.4.4 or 6.0.1 or later across all deployments.
- Audit every existing survey for pre-existing Custom Head Scripts content and remove entries that cannot be attributed to a Manage-role user.
- Rotate session tokens and API keys for workspace administrators who may have opened untrusted surveys since the vulnerability was introduced.
Patch Information
Formbricks fixed the issue in Release 5.4.4 and Release 6.0.1. The server-side handler now requires the Manage permission before accepting modifications to a survey's Custom Head Scripts. The code change is tracked in Pull Request #9432.
Workarounds
- Restrict workspace membership to the minimum necessary users and avoid granting readWrite to untrusted accounts until patching completes.
- Disable or clear the Custom Head Scripts feature on all surveys where it is not required.
- Deploy a strict Content Security Policy on the Formbricks domain to limit the impact of injected scripts.
# Upgrade a self-hosted Formbricks deployment using Docker
docker pull formbricks/formbricks:6.0.1
docker stop formbricks && docker rm formbricks
docker run -d --name formbricks \
--env-file .env \
-p 3000:3000 \
formbricks/formbricks:6.0.1
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

