Skip to content

Node.js based forum software built for the modern web

fix: prototype vulnerability in socket.io onMessage

Barış Soner Uşaklı48d143921753
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;