jordaniac89 / juice-shop

OWASP Juice Shop: Probably the most modern and sophisticated insecure web application
http://owasp-juice.shop
MIT License
0 stars 0 forks source link

High severity - Uncaught Exception vulnerability in socket.io (package.json) #214

Open github-actions[bot] opened 2 months ago

github-actions[bot] commented 2 months ago

Affected versions of this package are vulnerable to Uncaught Exception in handling error events. If there is no listener set up for such events, an attacker can send packets containing them to crash the Node process.

Workaround

This vulnerability can be avoided by attaching a listener for error events, such as

io.on("connection", (socket) => {
  socket.on("error", () => {
    // ...
  });
});

Remediation

Upgrade socket.io to version 2.5.1, 4.6.2 or higher.

References