File tree 1 file changed +16
-0
lines changed 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -3295,6 +3295,22 @@ Type: Documentation-only
3295
3295
have security implications. Use the [ WHATWG URL API] [ ] instead. CVEs are not
3296
3296
issued for ` url.parse() ` vulnerabilities.
3297
3297
3298
+ ### DEP0170: Invalid port when using ` url.parse() `
3299
+
3300
+ <!-- YAML
3301
+ changes:
3302
+ - version:
3303
+ - REPLACEME
3304
+ pr-url: https://github.com/nodejs/node/pull/45576
3305
+ description: Documentation-only deprecation.
3306
+ -->
3307
+
3308
+ Type: Documentation-only
3309
+
3310
+ [ ` url.parse() ` ] [ ] accepts URLs with ports that are not numbers. This behavior
3311
+ might result in host name spoofing with unexpected input. These URLs will throw
3312
+ an error in future versions of Node.js, as the [ WHATWG URL API] [ ] does already.
3313
+
3298
3314
[ NIST SP 800-38D ] : https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
3299
3315
[ RFC 6066 ] : https://tools.ietf.org/html/rfc6066#section-3
3300
3316
[ RFC 8247 Section 2.4 ] : https://www.rfc-editor.org/rfc/rfc8247#section-2.4
You can’t perform that action at this time.
0 commit comments