Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

body-parser vulnerable to denial of service when url encoding is enabled #5

Open
cwvecchione opened this issue Sep 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cwvecchione
Copy link
Owner

Possible Solution:
After some research, I came across this:

expressjs/body-parser#428
DefinitelyTyped/DefinitelyTyped#52314
This is a known issue with the current type definitions. The best workaround I could find was to replace bodyParser.json() and bodyParser.urlencoded() with express.json() and express.urlencoded() as suggested in https://stackoverflow.com/questions/24330014/bodyparser-is-deprecated-express-4

@cwvecchione cwvecchione added the bug Something isn't working label Sep 25, 2024
@cwvecchione cwvecchione self-assigned this Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant