Skip to content

Missing API docs for recent changes in HTTP module #24693

Closed
@lirantal

Description

@lirantal

Updates to the HTTP module that landed in recent Node.js releases in an attempt to mitigate several CVEs may cause braking changes on users and teams which make use of large headers due to reasons such as bulk APIs that will employ a large string in the query param.

  • Version: v6.15.0, v8.14.0, v10.14.0, v11.3.0.
  • Subsystem: http

It seems that:

  1. The current limitation of 8kb (instead of previously) 80kb is a hard limit and is not configurable.
  2. There may be an escape hatch which is to re-compile node with a higher limit.

At the very least, I'm proposing to update the HTTP API docs with the above details to convey this information.

I will follow-up with a PR to the docs.

--

Reference: https://www.nearform.com/blog/protecting-node-js-from-uncontrolled-resource-consumption-headers-attacks

Related issues: #24692

Metadata

Metadata

Assignees

No one assigned

    Labels

    httpIssues or PRs related to the http subsystem.http_parserIssues and PRs related to the HTTP Parser dependency or the http_parser binding.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions