Feathersjs is a framework for creating web APIs and real-time applications with TypeScript or JavaScript. From 5.0.0 to before 5.0.42, Socket.IO clients can send arbitrary JavaScript objects as the id argument to any service method (get, patch, update, remove). The transport layer performs no type checking on this argument. When the service uses the MongoDB adapter, these objects pass through getObjectId() and land directly in the MongoDB query as operators. Sending {$ne: null} as the id matches every document in the collection. This vulnerability is fixed in 5.0.42.
The Feathers.js transport layer does not verify the type of the id argument passed by Socket.IO clients to service methods (get, patch, update, remove). When a service uses the MongoDB adapter, the passed object is sent without validation to the getObjectId() function, and then directly to the MongoDB query as an operator. For example, sending the object {"$ne": null} as id matches every document in the collection, because MongoDB interprets it as a valid comparison operator.
An unauthenticated attacker can read, modify, or delete all documents in the affected MongoDB collection, resulting in complete loss of confidentiality, integrity, and availability of stored data.
Feathers.js must be updated to version 5.0.42 or later, where the vulnerability has been fixed. Detailed information is available in the vendor references (GHSA-p9xr-7p9p-gpqx).
Feathersjs Feathers in versions 5.0.0 to 5.0.41 (inclusive), using the MongoDB adapter.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XFeathersjs Feathers
APPFeathersjs5.0.0 – 5.0.42 (excl.)
Related vulnerabilities
Feathers.js: pominięcie uwierzytelnienia OAuth umożliwia przejęcie konta
Feathersjs is a framework for creating web APIs and real-time applications with TypeScript or JavaScript. Vers...
Feathersjs is a framework for creating web APIs and real-time applications with TypeScript or JavaScript. In v...
Feathersjs is a framework for creating web APIs and real-time applications with TypeScript or JavaScript. In v...
Feathersjs is a framework for creating web APIs and real-time applications with TypeScript or JavaScript. Feat...