Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as readWrite workspace member
-
DeliveryConfigure malicious Custom Head Scripts on a survey
-
ExploitHigher-privileged user opens affected survey
-
ExecutionInjected JavaScript executes in victim session
-
ImpactAct within privileged user's authenticated context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated attacker holding at least 'readWrite' permission in the target Formbricks workspace (PR:L); no Manage role is needed because the permission check was missing on the survey-level Custom Head Scripts feature. The attacker configures Custom Head Scripts on a survey, and exploitation only completes when a separate, higher-privileged user opens that affected survey (UI:P), causing the stored script to run in that victim's authenticated session. Limiting factors: the attacker must already have a valid in-workspace account, the deployment must have multiple privilege tiers sharing surveys, the victim must actively open the malicious survey, and the issue is fully remediated in 5.4.4 and 6.0.1 which re-enforce the Manage requirement. |
| Impact | This is a genuine but moderate-severity issue, not a high-urgency priority. The only quantitative signal provided is a CVSS 4.0 base score of 5.1 (Medium) with vector AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N - network reachable and low complexity, but gated behind PR:L (an authenticated low-privilege 'readWrite' workspace member) and UI:P (a higher-privileged user must open the affected survey). No EPSS score, no CISA KEV listing, and no verified public exploit code were supplied, so there is no evidence of active or at-scale exploitation; a vendor/researcher blog writeup (sec4check.pl) exists but is a disclosure writeup rather than confirmed weaponized POC. The impact metrics are uniformly Low (VC:L/VI:L), consistent with stored XSS running in another user's session rather than full account/system takeover. The signals are internally consistent - this is a privilege-boundary (CWE-863 incorrect authorization) flaw that enables stored XSS against collaborators, exploitable only by someone who already holds a valid account in the same workspace. Treat as a standard-cadence patch for multi-user Formbricks deployments, prioritized higher where many lower-trust members share workspaces with admins. |
| Exploit ScenarioDerived | A workspace member who only has readWrite permission edits a survey and configures malicious Custom Head Scripts - an action that should require the Manage role but was not enforced. When a higher-privileged user (e.g., a Manage-role admin) later opens that survey in their authenticated browser session, the attacker's JavaScript executes in that session, enabling session-context actions against the victim. No public exploit code is confirmed, though a researcher disclosure writeup describes the flaw. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 03, 2026
Stored cross-site scripting in Formbricks allows an authenticated workspace member holding only the lower-privileged readWrite role to inject arbitrary JavaScript into a survey through the survey-level Custom Head Scripts feature, which failed to enforce the documented Manage permission boundary. Because the injected scripts run inside the authenticated browser session of any user who opens the affected survey, a low-privileged member can execute code in the session of higher-privileged users such as Manage-role holders or administrators. Exploitation requires a valid in-workspace account (CVSS PR:L) and a separate victim who actually opens the survey (UI:P), and the issue is remediated in Formbricks 5.4.4 and 6.0.1, which re-enforce the Manage requirement for modifying survey Custom Head Scripts; no public exploit code or confirmed active exploitation was identified at time of analysis.
RemediationAI
Upgrade to Formbricks 5.4.4 (for the 5.x line) or 6.0.1 (for the 6.x line) as the definitive fix: vendor-released patch versions 5.4.4 and 6.0.1 re-enforce the documented Manage permission requirement so that only Manage-role members can read or modify survey Custom Head Scripts. The change is delivered upstream via pull request https://github.com/formbricks/formbricks/pull/9432 and the 6.0 backport PR #9434, and release artifacts are at https://github.com/formbricks/formbricks/releases/tag/5.4.4 and https://github.com/formbricks/formbricks/releases/tag/6.0.1; self-hosters performing the v6 upgrade should follow the release notes' Helm guidance to keep the upgrade safe. If immediate patching is not possible, apply compensating controls with explicit trade-offs: audit and strip existing Custom Head Scripts from every survey, including a database-level review of stored head-script fields, since a payload planted before the upgrade will persist and continue firing after the permission check is restored - the trade-off is loss of any legitimate analytics or tracking scripts, which must be re-added by Manage users only; temporarily remove or demote readWrite members and tighten workspace membership to a minimum set of trusted Manage users, accepting reduced team collaboration as the cost; and add a strict Content-Security-Policy to the Formbricks application (disallowing 'unsafe-inline' and restricting script-src to trusted origins), which limits inline payload execution but can break legitimate embedded scripts and requires testing. Note that no vendor-released patch is missing here - the fix exists - and no public exploit code or confirmed active exploitation was identified at time of analysis, so remediation should be scheduled as a moderate priority rather than an emergency.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Formbricks is an open-source survey and experience-management platform that lets teams embed survey content - including survey-level customization such as Custom Head Scripts - into web pages and share surveys across a multi-tenant workspace with role tiers (for example readWrite versus Manage). The root cause is classified as CWE-863 (Incorrect Authorization): the endpoint handling survey Custom Head Scripts performed an insufficient authorization check, permitting a member with only readWrite permission to persist script content that the product documentation explicitly reserves for the Manage role. This is not a memory-safety or injection-parsing defect but an access-control enforcement gap, which converts a legitimate administrative customization feature into a persistent script-injection primitive. The CPE entry cpe:2.3:a:formbricks:formbricks:*:*:*:*:*:*:*:* does not constrain version ranges in the feed, so the authoritative scope comes from the vendor description: all 5.x releases before 5.4.4 and all 6.x releases before 6.0.1. The attack chain is two-stage and cross-privilege: the attacker stores the payload, and the payload detonates in the browser context of a more privileged user who later opens the survey, which is why the CVSS:4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N) and our independent CVSS:3.1 assessment (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N) both show a scope-changing, user-interaction-dependent, low-confidentiality/integrity-impact profile rather than broad server compromise.
Know when Formbricks gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Low-privilege authenticated member exploits it (PR:L), victim must open the survey (UI:R), and stored XSS executing in another user's browser crosses a trust boundary (S:C) with limited C/I impact.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
Formbricks before 5.4.4 and 6 before 6.0.1 allows stored XSS. The survey-level Custom Head Scripts feature did not 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. Because the configured scripts execute in the authenticated browser session of any user who opens the affected survey, a lower-privileged member can run arbitrary JavaScript (stored cross-site scripting) in the session of higher-privileged users. Fixed versions require Manage access to modify survey Custom Head Scripts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Formbricks
View allImproper access control in Formbricks 5.0.0 allows remote unauthenticated attackers to bypass authorization checks in th
Cross-organization IDOR in Formbricks server actions before 4.9.0 allows an authenticated owner or manager of any organi
EUVD-2026-91874
GHSA-q9hg-xqvp-x2xv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB