Skip to content

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

Merged
advisory-database[bot] merged 1 commit into
sealonohana/advisory-improvement-5486from
sealonohana-GHSA-4www-5p9h-95mh
Apr 28, 2025
Merged

[GHSA-4www-5p9h-95mh] http-proxy-middleware can call writeBody twice because "else if" is not used#5486
advisory-database[bot] merged 1 commit into
sealonohana/advisory-improvement-5486from
sealonohana-GHSA-4www-5p9h-95mh

Conversation

@sealonohana

@sealonohana sealonohana commented Apr 27, 2025

Copy link
Copy Markdown

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 AI review requested due to automatic review settings April 27, 2025 15:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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
@advisory-database

Copy link
Copy Markdown
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.

2 participants