Vulnerability library
Security checkMarch 10, 2026

Feathers has a NoSQL Injection via WebSocket id Parameter in MongoDB Adapter

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the @feathersjs/mongodb package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 5.0.0, <= 5.0.41
  • Patched version(s): 5.0.42

References

Could your website be exposed too?

SmartScanner can check your website for Feathers has a NoSQL Injection via WebSocket id Parameter in MongoDB Adapter and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 10, 2026