Advisory

GHSA-6x33-pw7p-hmpq

Also known as: None

Summary

Denial of Service in http-proxy

Details

Versions of http-proxy prior to 1.18.1 are vulnerable to Denial of Service. An HTTP request with a long body triggers an ERR_HTTP_HEADERS_SENT unhandled exception that crashes the proxy server. This is only possible when the proxy server sets headers in the proxy request using the proxyReq.setHeader function.

For a proxy server running on http://localhost:3000, the following curl request triggers the unhandled exception:



## Recommendation

Upgrade to version 1.18.1 or later

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-04 17:59 UTC
Modified
2024-01-29 20:57 UTC

Affected packages and fixes

http-proxy

npm · All systems

Affected

  • introduced 0, fixed 1.18.1 (semver)

Fixed versions

1.18.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences