Replies: 1 comment
-
|
Currently, hono doesn’t have a builtin way to protect against nosql injection or provide sanitization middleware. So, there isn’t yet an equivalent to express mongo sanitize. I don’t think zod or zvalidator are sufficient for complete nosql injection protection. While they can help protect against malicious payloads being processed, they can't fully protect against nosql injection attacks. So, the best approach right now is to create a custom middleware. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Does hono sanitizes nosql injections or should i create custom middleware or is there alternative middleware for the express mongo sanitize, also i am using zod as validation with zValidator is this enough to capture nosql injections ?
Beta Was this translation helpful? Give feedback.
All reactions