-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Closed
Labels
discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.securityIssues and PRs related to security.Issues and PRs related to security.urlIssues and PRs related to the legacy built-in url module.Issues and PRs related to the legacy built-in url module.
Description
- Version: all
- Platform: all
- Subsystem: url
url.parse() is "sloppy" with its parsing, so use of it can result in behaviour unexpected by some users that has security implications.
It is marked as deprecated at https://nodejs.org/api/url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost, but the docs don't specifically call out the security issues, so people won't necessarily know that security is a reason to avoid it.
It also doesn't list the specific (known) security issues, so that its not possible for users of the legacy url.parse() API to determine whether their usage is insecure.
These should be addressed through documentation.
Related
- https://github.com/nodejs/node/issues/23694
- https://hackerone.com/reports/738333
- https://hackerone.com/reports/678487
Vulnerability reports in process of disclosure, so link will be dead for a while longer.
Metadata
Metadata
Assignees
Labels
discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.securityIssues and PRs related to security.Issues and PRs related to security.urlIssues and PRs related to the legacy built-in url module.Issues and PRs related to the legacy built-in url module.