Commit b6b5b51 2 people authored and committed
1 parent f63ae52 commit b6b5b51 Copy full SHA for b6b5b51
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 @@ -3292,6 +3292,22 @@ Type: Documentation-only
3292
3292
have security implications. Use the [ WHATWG URL API] [ ] instead. CVEs are not
3293
3293
issued for ` url.parse() ` vulnerabilities.
3294
3294
3295
+ ### DEP0170: Invalid port when using ` url.parse() `
3296
+
3297
+ <!-- YAML
3298
+ changes:
3299
+ - version:
3300
+ - REPLACEME
3301
+ pr-url: https://github.com/nodejs/node/pull/45576
3302
+ description: Documentation-only deprecation.
3303
+ -->
3304
+
3305
+ Type: Documentation-only
3306
+
3307
+ [ ` url.parse() ` ] [ ] accepts URLs with ports that are not numbers. This behavior
3308
+ might result in host name spoofing with unexpected input. These URLs will throw
3309
+ an error in future versions of Node.js, as the [ WHATWG URL API] [ ] does already.
3310
+
3295
3311
[ NIST SP 800-38D ] : https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
3296
3312
[ RFC 6066 ] : https://tools.ietf.org/html/rfc6066#section-3
3297
3313
[ 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