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(security): prevent XSS in proxy endpoint via json.dumps()
CodeQL alert #84: target_origin was inserted into JavaScript without
proper escaping. Fix uses json.dumps() to safely encode the origin
string for JavaScript context, preventing XSS even if the origin
contained special characters.
- Add json import
- Use json.dumps(target_origin) for safe JS string encoding
- Update test to match double-quote format from json.dumps()
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments