Skip to content

[GHSA-4www-5p9h-95mh] http-proxy-middleware can call writeBody twice because "else if" is not used #5486

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

Conversation

sealonohana
Copy link

@sealonohana sealonohana commented Apr 27, 2025

Updates

  • Affected products

Comments
CVE-2025-32996 is not applicable until 1.3.0. The CVE relates to a function called fixRequestBody which takes the request body and makes sure that the request body is written in the right format. For example - if the content-type is JSON - it will write the body as a JSON. If it is multipart/form-data it will write the body is form-data. The vulnerability allows to write the body as both JSON and form-data and lead to exploits. The functionality of fixRequestBody was not existed until 1.3.0.

The code was added in v1.3.0:
https://github.com/chimurai/http-proxy-middleware/tree/v1.3.0/src/handlers

In the following Pull Request:
chimurai/http-proxy-middleware#492

@Copilot Copilot AI review requested due to automatic review settings April 27, 2025 15:12
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)

@github-actions github-actions bot changed the base branch from main to sealonohana/advisory-improvement-5486 April 27, 2025 15:13
@advisory-database advisory-database bot merged commit 182c226 into sealonohana/advisory-improvement-5486 Apr 28, 2025
4 checks passed
@advisory-database
Copy link
Contributor

Hi @sealonohana! Thank you so much for contributing to the GitHub Advisory Database. This database is free, open, and accessible to all, and it's people like you who make it great. Thanks for choosing to help others. We hope you send in more contributions in the future!

@advisory-database advisory-database bot deleted the sealonohana-GHSA-4www-5p9h-95mh branch April 28, 2025 14:27
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.

1 participant