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

feat: upgrade to [email protected] #5926

Merged

Conversation

UlisesGascon
Copy link
Member

This PR introduces the ability to customize the depth level in body-parser (default is 32, previously Infinity). Lower values are recommended for security reasons when possible.

You can customize it like this:

app.post('/', bodyParser.urlencoded({
    depth: 5,
    // Other options...
})

@UlisesGascon UlisesGascon merged commit 2360ae7 into expressjs:master Sep 9, 2024
49 checks passed
@UlisesGascon UlisesGascon deleted the feat/upgrade-body-parser branch September 9, 2024 23:36
UlisesGascon added a commit that referenced this pull request Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants