storyblok-best-practices
Audited by Socket on Sep 21, 2026
3 alerts found:
Anomalyx3The fragment does not show malware or intentional supply-chain sabotage. It contains a meaningful cross-window messaging security weakness: untrusted messages are accepted without origin/source validation, and the request uses a wildcard target origin. This can permit configuration spoofing and may become more serious if AppWithSettings performs sensitive operations or renders settings unsafely. Storyblok credentials are referenced through deployment secret variables, not hardcoded. The entire file cannot be classified from this partial view.
The fragment is benign documentation for rich-text rendering and contains no apparent malware or supply-chain attack behavior. However, several examples have potential XSS risks because untrusted resolver attributes and content are interpolated into HTML strings, and one example explicitly uses unsanitized dangerouslySetInnerHTML. Consumers should validate and contextually escape all interpolated values, prefer React/Vue element rendering, and sanitize final HTML with a correctly configured sanitizer such as DOMPurify.
No evidence of intentional malware or supply-chain sabotage is present. The code is legitimate pipeline-staging guidance, but the Next.js configuration may expose preview or staging access tokens to clients, and the webhook example has incomplete authentication and payload validation for deployment-triggering operations. These are security design risks requiring review in an actual implementation.