-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
security revert CVE-2016-2216 didn't work with HPE_UNEXPECTED_CONTENT_LENGTH #5754
Comments
/cc @nodejs/lts @nodejs/security |
RFC 7230 obsoletes RFC 2616, and there is this statement:
Taking important parts out of it:
IMO, won't fix. Sorry! |
I see..But still I think |
I agree. cc @jasnell |
I think what you're asking for is |
I'm open to adding a revert for this CVE.
|
@hefangshi Has the duplicate header issue itself been reported to the service in question yet? They really shouldn't be sending these headers in the first place. |
@joepie91 Sure I did, but I think this would be a common issue, so I posted here :) |
Alright, fair enough, just wanted to check :) |
I'll have to explore making this additional revert available. The
|
Closing due to lack of forward progress on this |
We encounter this issue when we upgrade node.js from v4.2.x to v4.3.x or v4.4.0.
A service we depends on will return both
Transfer-Encoding
andContent-Length
in headers, and the node.js > 4.3.x will throw a HPE_UNEXPECTED_CONTENT_LENGTH error when we make a request with the service. and security revert CVE-2016-2216 also can't resolve this problem.Also, according to RFC 2616
So I think Node.js should ignore the content-length when both header was given rather than throw a error.
Here is some code the reproduce this issue
The text was updated successfully, but these errors were encountered: