Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b771fdb

Browse filesBrowse files
aduh95Trott
authored andcommitted
doc: deprecate use of invalid ports in url.parse
PR-URL: #45576 Refs: #45526 Co-authored-by: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 6a36159 commit b771fdb
Copy full SHA for b771fdb

File tree

Expand file treeCollapse file tree

1 file changed

+16
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+16
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/deprecations.md‎

Copy file name to clipboardExpand all lines: doc/api/deprecations.md
+16Lines changed: 16 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3283,6 +3283,22 @@ Type: Documentation-only
32833283
have security implications. Use the [WHATWG URL API][] instead. CVEs are not
32843284
issued for `url.parse()` vulnerabilities.
32853285

3286+
### DEP0170: Invalid port when using `url.parse()`
3287+
3288+
<!-- YAML
3289+
changes:
3290+
- version:
3291+
- REPLACEME
3292+
pr-url: https://github.com/nodejs/node/pull/45576
3293+
description: Documentation-only deprecation.
3294+
-->
3295+
3296+
Type: Documentation-only
3297+
3298+
[`url.parse()`][] accepts URLs with ports that are not numbers. This behavior
3299+
might result in host name spoofing with unexpected input. These URLs will throw
3300+
an error in future versions of Node.js, as the [WHATWG URL API][] does already.
3301+
32863302
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
32873303
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
32883304
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.