fiznool

fiznool/express-mongo-sanitize

Sanitize your express payload to prevent MongoDB operator injection.

JavaScript
218
17
MIT License

This project provides Express 4.x middleware to sanitize user-supplied data and prevent MongoDB operator injection attacks. It automatically scans `req.body`, `req.query`, `req.headers`, and `req.params` for keys containing `$` or `.`, either removing them or replacing prohibited characters based on configuration options. The tool is essential for developers building Express applications that interact with MongoDB databases and need to protect against malicious input.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

fiznool's profile
fiznool
50 contributions
azu's profile
azu
6 contributions
lorand-horvath's profile
lorand-horvath
2 contributions
tuffant21's profile
tuffant21
1 contributions
dependabot[bot]'s profile
dependabot[bot]
1 contributions
kombucha's profile
kombucha
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet