Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

http: unset F_CHUNKED on new Transfer-Encoding (Fixes CVE-2020-8287) #530

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jellelicht
Copy link

This change has only been integrated with the bundled version of http-parser in the node sources;

nodejs/node@fc70ce0

Can it please be synced here, with a release being made as well?

Duplicate `Transfer-Encoding` header should be a treated as a single,
but with original header values concatenated with a comma separator. In
the light of this, even if the past `Transfer-Encoding` ended with
`chunked`, we should be not let the `F_CHUNKED` to leak into the next
header, because mere presence of another header indicates that `chunked`
is not the last transfer-encoding token.

CVE-ID: CVE-2020-8287
PR-URL: https://github.com/nodejs-private/node-private/pull/235
Reviewed-By: Fedor Indutny <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants