Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Formbricks | Formbricks | < 5.4.4, 6.0.0 – < 6.0.1 | 5.4.4 |
References
- Formbricks release 6.0.1 (fix) release-notes patch
- Formbricks release 5.4.4 (fix, backport) release-notes patch
- PR #9432 - require Manage access to change survey custom head scripts patch
- https://www.sec4check.pl/blog/posts/cve-formbricks-broken-access-control-stored-xss-custom-head-scripts.html technical-description