Skip to content

Adding nodejs http.request option: insecureHTTPParser for interoperability#2930

Merged
jasonsaayman merged 2 commits intoaxios:masterfrom
fabiel-leon:master
Sep 5, 2021
Merged

Adding nodejs http.request option: insecureHTTPParser for interoperability#2930
jasonsaayman merged 2 commits intoaxios:masterfrom
fabiel-leon:master

Conversation

@fabiel-leon
Copy link
Copy Markdown
Contributor

February 2020 Security Releases
by Sam Roberts, 2020-02-06 Nodejs has increase the strictness of HTTP header parsing. There are no known vulnerabilities addressed, but lax HTTP parsing has historically been a source of problems. Some commonly used sites are known to generate invalid HTTP headers, a --insecure-http-parser CLI option or insecureHTTPParser http option can be used if necessary for interoperability, but is not recommended.
https://nodejs.org/en/blog/vulnerability/february-2020-security-releases/#strict-http-header-parsing-none

Bug Error: Parse Error: Invalid header value char

adding the new option for nodejs http.request: insecureHTTPParser for interoperability

see nodejs http.request options docs

see nodejs/node#27711

@chinesedfan
Copy link
Copy Markdown
Contributor

Added to #2808.

@github-actions
Copy link
Copy Markdown
Contributor

Hello! 👋 \n\nThis pull request is being automatically marked as stale because it has not been updated in a while. Please confirm that the issue is still present and reproducible. If no updates or new comments are received the pull request will be closed in a few days. \n\nThanks

@queso
Copy link
Copy Markdown

queso commented Sep 14, 2021

It seems the new boolean value was missed in the request config type interface

mbargiel pushed a commit to mbargiel/axios that referenced this pull request Jan 27, 2022
Co-authored-by: Jay <jasonsaayman@gmail.com>
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.

4 participants