Insecure websocket communication detected.
- Rule ID: javascript_lang_websocket_insecure
- Languages: javascript
- Source: websocket_insecure.yml
Description
Applications should only connect to APIs using SSL connections. This rule checks that all websocket connections use SSL.
Remediations
❌ Avoid using unsecured outgoing websocket communication:
const client = new WebSocket('ws://insecure-api.com')
✅ Always connect using SSL:
const client = new WebSocket('wss://secure-api.com')
Resources
Associated CWE
OWASP Top 10
Ready to take the next step? Join the Bearer Cloud waitlist.