You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: comprehensive security and bug fixes across auth, API, and frontend
CRITICAL:
- Fix XSS in highlightBash via escapeHtml before regex highlighting
- Reject JWT tokens without exp claim (was bypassable with exp:0)
- Add rate limiting, size cap, and error handling to brewfile parse
HIGH:
- Preserve existing username on GitHub re-login (prevent overwrite)
- Clear OAuth state cookies on state mismatch (both providers)
- Fix CLI approve race condition with atomic UPDATE claim + db.batch
- Server-generate all device codes (remove client-supplied code path)
- Fix open redirect in validateReturnTo via decodeURIComponent
- Wrap GitHub callback in try/catch matching Google callback pattern
- Hide unlisted configs from public profile pages
- Check response.ok before reloading after deleteConfig
- Fix packageDescs mutation (create new Map instead of mutating)
- Add performance indexes on configs and cli_auth_codes
MEDIUM:
- Add updated_at to snapshot UPDATE query
- Cap slug dedup loop at 100 attempts
- Fix formatDate unconditional Z append for D1 date strings
- Fix stale event?.currentTarget in ConfigDetail copy button
- Migrate ThemeToggle from Svelte 4 on:click to Svelte 5 onclick
- Remove dead starCount GitHub API fetch from home page
- Add name/description length validation to config creation
- Centralize RESERVED_ALIASES constant across hooks and API endpoints
- Change logout from GET to POST (CSRF prevention)
- Replace N+1 queries with JOIN in hooks.server.ts
- Fix auth store checkPromise reset on fetch failure
- Add opportunistic expired cli_auth_codes cleanup
0 commit comments