From 963bfff3adda5cdf01f286ba9afcf53eaa399262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 27 Nov 2022 19:32:35 -0500 Subject: [PATCH] fix: prototype vulnerability in socket.io onMessage --- src/socket.io/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.io/index.js b/src/socket.io/index.js index 58134ae2e2..b77edbb57d 100644 --- a/src/socket.io/index.js +++ b/src/socket.io/index.js @@ -13,7 +13,7 @@ const logger = require('../logger'); const plugins = require('../plugins'); const ratelimit = require('../middleware/ratelimit'); -const Namespaces = {}; +const Namespaces = Object.create(null); const Sockets = module.exports;