Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

liveblocks/liveblocks
main @ 90520b0
4
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
examples/nextjs-block-text-editor-advanced/src/utils.ts: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix 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: The collaborative block text editor accepted raw HTML inputs and rendered them directly using dangerouslySetInnerHTML, which allowed arbitrary script execution in client browsers if the inputs were unsanitized.
Auth Bypass: Read-only clients could bypass write restrictions and mutate room CRDT storage because client-side state mutations did not consistently enforce token write-privilege checks.
Path Traversal: The authorize helper injected the user-supplied roomId directly into the API endpoint string template without URL encoding, allowing attackers to traverse outside the designated endpoint path.