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
security(git-id-switcher): tighten CSP img-src from wildcard to explicit subdomain (#462)
- Replace `*.githubusercontent.com` with `avatars.githubusercontent.com`
in buildCspString img-src to prevent loading arbitrary files from
attacker-controlled repositories via raw.githubusercontent.com
- Add scoped absence tests that extract the img-src directive and verify
wildcard / raw.githubusercontent.com are not present
- Move `coerceLang` and `STYLE_CLOSE_PATTERN` from csp.ts to shell.ts
to align module boundaries (shell-rendering vs CSP concerns)
- Update ARCHITECTURE.md CSP section to reflect current policy
- Add shell.ts to ESLint regex-constant allowlist
🖥️ IDE: [VS Code](https://code.visualstudio.com/)
🔌 Extension: [Claude Code](https://claude.ai/download)
Model-Raw: claude-opus-4-6
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments