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
- Pin @synonymdev/pubky to version 0.5.4 (was 'latest')
- Implement Pubky Client singleton factory pattern
- Create src/utils/pubky-client-factory.ts
- Update all 6 files to use singleton instead of new Client()
- Prevents memory leaks and ensures consistent state
- Add capability validation before auth flow
- Validate capabilities format in auth-sdk.ts
- Prevents security risk from malformed capabilities
- Replace innerHTML with DOMPurify sanitization
- Install dompurify and @types/dompurify
- Update 8 locations: AnnotationManager, DrawingManager, PubkyURLHandler, profile-renderer
- Critical security fix for profile-renderer (untrusted HTML from homeserver)
- Defense-in-depth for static templates
- Run npm audit fix (fixed 1 package, 6 remain in dev deps)
Addresses high priority issues from production audit:
- Multiple Pubky Client instances (memory/state risk)
- No capability validation in auth flow (security risk)
- innerHTML usage with template literals (XSS risk)
Phase 2 of comprehensive production audit remediation plan.
0 commit comments