Title: Increase HTTP_MAX_HEADER_SIZE to 16kb · Issue #27645 · nodejs/node · GitHub
Open Graph Title: Increase HTTP_MAX_HEADER_SIZE to 16kb · Issue #27645 · nodejs/node
X Title: Increase HTTP_MAX_HEADER_SIZE to 16kb · Issue #27645 · nodejs/node
Description: Is your feature request related to a problem? Please describe. Node recently introduced a security fix that decreased the max header size to 8kb 1860352. This has caused problems for users who are using APIs that pass large amounts of da...
Open Graph Description: Is your feature request related to a problem? Please describe. Node recently introduced a security fix that decreased the max header size to 8kb 1860352. This has caused problems for users who are ...
X Description: Is your feature request related to a problem? Please describe. Node recently introduced a security fix that decreased the max header size to 8kb 1860352. This has caused problems for users who are ...
Opengraph URL: https://github.com/nodejs/node/issues/27645
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Increase HTTP_MAX_HEADER_SIZE to 16kb","articleBody":"**Is your feature request related to a problem? Please describe.**\r\nNode recently introduced a [security fix](https://www.nearform.com/blog/protecting-node-js-from-uncontrolled-resource-consumption-headers-attacks/) that decreased the max header size to 8kb https://github.com/nodejs/node/commit/186035243fad247e3955fa0c202987cae99e82db. This has caused problems for users who are using APIs that pass large amounts of data via headers. One example: https://github.com/Azure/azure-cosmos-js/issues/221. Node users running in managed environments like FaaS cloud services are unable to set the `--max-http-header-size` CLI flag. More examples in https://github.com/nodejs/node/issues/24692\r\n\r\n**Describe the solution you'd like**\r\nIncrease the max header size to 16kb. [This StackOverflow issue](https://stackoverflow.com/questions/1097651/is-there-a-practical-http-header-length-limit/6160643#6160643) outlines the max header size for various web servers and 16kb is the maximum for IIS which is used in many of our APIs. It seems to me that 16kb is a more reasonable default with the widespread usage of IIS. Assuming of course that 16kb is still secure given the vulnerability present when the default value was 80kb.\r\n\r\n**Describe alternatives you've considered**\r\nIn our case, I am also working to solve this issue on the API side, but in some cases, for legacy production APIs it is just not possible to decrease our header usage.\r\n\r\n@mcollina @bnb \r\n","author":{"url":"https://github.com/southpolesteve","@type":"Person","name":"southpolesteve"},"datePublished":"2019-05-10T22:50:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":21},"url":"https://github.com/27645/node/issues/27645"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5d0832ee-1406-1fd5-6884-6da46dfb6557 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A178:240FF0:7A22AB:B0CCF8:6A4E1172 |
| html-safe-nonce | 9fa912ae422e0ae28b66fa74d465a42091e5885271368fe802438ecdb61a7c09 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTc4OjI0MEZGMDo3QTIyQUI6QjBDQ0Y4OjZBNEUxMTcyIiwidmlzaXRvcl9pZCI6IjM4Njk1NTQ0Mzc4MzY5MDI3NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a49e15f1c980190308a7149f873887c20c2d3f4d603f6ed195937f3e45a1094f |
| hovercard-subject-tag | issue:442920307 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/27645/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c2f787e6e75205d9e0bd97a36cb312135483166e033f5cc37a03d0127f5cbe0a/nodejs/node/issues/27645 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2f787e6e75205d9e0bd97a36cb312135483166e033f5cc37a03d0127f5cbe0a/nodejs/node/issues/27645 |
| og:image:alt | Is your feature request related to a problem? Please describe. Node recently introduced a security fix that decreased the max header size to 8kb 1860352. This has caused problems for users who are ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | southpolesteve |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 51470c353b8a1f52a88d3e3cc2014b17ab8cc1ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width