Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
apps/app/src/app/page.tsx: most-fixed (1 issue). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Cross-Site Scripting (XSS): The widget renderer component previously accepted arbitrary parent window messages, processed them via dangerous innerHTML injections, and used permissive iframe configurations. This creates a high risk of cross-site scripting if messages are not validated and iframe sandbox attributes like 'allow-same-origin' are not strictly limited.
Auth Bypass: Unvalidated postMessage handlers in the main application page allowed untrusted external origins to perform unauthorized actions, bypassing intended access controls. Ensuring all postMessage event handlers thoroughly validate the message sender's origin is critical.
Path Traversal: The loadSkill functionality retrieved local files via readFileSync without proper path sanitization, enabling malicious actors to escape the designated SKILLS_DIR. Path canonicalization and directory prefix verification must be applied to all dynamic file read operations.