Title: DEP0169 DeprecationWarning: url.parse() when url.resolve() used (non node_modules) >=v24.0.0 · Issue #61816 · nodejs/node · GitHub
Open Graph Title: DEP0169 DeprecationWarning: url.parse() when url.resolve() used (non node_modules) >=v24.0.0 · Issue #61816 · nodejs/node
X Title: DEP0169 DeprecationWarning: url.parse() when url.resolve() used (non node_modules) >=v24.0.0 · Issue #61816 · nodejs/node
Description: Refs: #61724 Refs: #61780 Version >=v24.0.0 Platform Linux ubuntu-24.04 6.17.0-14-generic #14~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jan 15 15:52:10 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem url What steps will reproduce the bug? Ru...
Open Graph Description: Refs: #61724 Refs: #61780 Version >=v24.0.0 Platform Linux ubuntu-24.04 6.17.0-14-generic #14~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jan 15 15:52:10 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem u...
X Description: Refs: #61724 Refs: #61780 Version >=v24.0.0 Platform Linux ubuntu-24.04 6.17.0-14-generic #14~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jan 15 15:52:10 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsyste...
Opengraph URL: https://github.com/nodejs/node/issues/61816
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DEP0169 DeprecationWarning: url.parse() when url.resolve() used (non node_modules) \u003e=v24.0.0","articleBody":"Refs: https://github.com/nodejs/node/issues/61724\nRefs: https://github.com/nodejs/node/pull/61780\n\n### Version\n\n\\\u003e=v24.0.0\n\n### Platform\n\n```text\nLinux ubuntu-24.04 6.17.0-14-generic #14~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jan 15 15:52:10 UTC 2 x86_64 x86_64 x86_64 GNU/Linux\n```\n\n### Subsystem\n\nurl\n\n### What steps will reproduce the bug?\n\nRun example from Legacy URL API [url.resolve(from, to)](https://nodejs.org/docs/latest/api/url.html#urlresolvefrom-to) directly without involving `node_modules`\n\n```js\nconst url = require('node:url');\nurl.resolve('/one/two/three', 'four'); // '/one/two/four'\nurl.resolve('http://example.com/', '/one'); // 'http://example.com/one'\nurl.resolve('http://example.com/one', '/two'); // 'http://example.com/two'\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways in Node.js \u003e=24.0.0\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe [DEP0169](https://nodejs.org/docs/latest/api/deprecations.html#DEP0169) documentation section should list `url.resolve()` alongside `url.format()` as being covered by this deprecation.\n\nThe [url.resolve(from, to)](https://nodejs.org/docs/latest/api/url.html#urlresolvefrom-to) should list Application deprecation as of v24.0.0\n\nApplication deprecation (non-`node_modules` code only) was introduced for [url.parse(urlString[, parseQueryString[, slashesDenoteHost]])](https://nodejs.org/docs/latest/api/url.html#urlparseurlstring-parsequerystring-slashesdenotehost) in v24.0.0 through https://github.com/nodejs/node/pull/55017.\n\nInternally `urlResolve()` calls `urlParse()`, so `url.resolve()` needs the same level of deprecation as `url.parse()`\n\nhttps://github.com/nodejs/node/blob/ad945c599c6b9a5a356a27745643b871b3ebb3d2/lib/url.js#L720-L722\n\nThe documentation should reflect that it was introduced in v24.0.0.\n\n### What do you see instead?\n\nThe message for DEP0169 contains no reference to `url.resolve()`, nor does the [DEP0169](https://nodejs.org/docs/latest/api/deprecations.html#DEP0169) documentation section mention `url.resolve()`.\n\n```text\n(node:5802) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.\n(Use `node --trace-deprecation ...` to show where the warning was created)\n```\n\n### Additional information\n\nFollows on from https://github.com/nodejs/node/issues/61724 which describes two difference issues for `url.resolve()` deprecations\n\n- inside `node_modules` where there is a regression introduced in 24.13.1 \u0026 25.4.0\n- outside `node_modules` where the deprecation warning was introduced undocumented in 24.0.0\n\n~~https://github.com/nodejs/node/pull/61780 is currently open to resolve this documentation issue~~ Edit: this was closed without landing\n","author":{"url":"https://github.com/MikeMcC399","@type":"Person","name":"MikeMcC399"},"datePublished":"2026-02-14T11:32:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/61816/node/issues/61816"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:576557cc-d6c0-35ec-c530-9557f842b455 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5D6:228A12:45F793:5E4007:6A4C7660 |
| html-safe-nonce | 465c944bdc3dea115f5c9a2891eece7fd79fc8d8fc2324afed904e125be3d67c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUQ2OjIyOEExMjo0NUY3OTM6NUU0MDA3OjZBNEM3NjYwIiwidmlzaXRvcl9pZCI6IjUxODg1NjI4NzMyNDA4MTExMDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 23d26fc5d75b21f41952b8d7175b2c91a56f64cead026ccb36a4a1e0ac9f6607 |
| hovercard-subject-tag | issue:3941182278 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/61816/issue_layout |
| twitter:image | https://opengraph.githubassets.com/207a55983c6407e40c02ac6bd04ffe193e8bb3a1c9c895fd1b29aa7514ab6333/nodejs/node/issues/61816 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/207a55983c6407e40c02ac6bd04ffe193e8bb3a1c9c895fd1b29aa7514ab6333/nodejs/node/issues/61816 |
| og:image:alt | Refs: #61724 Refs: #61780 Version >=v24.0.0 Platform Linux ubuntu-24.04 6.17.0-14-generic #14~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jan 15 15:52:10 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem u... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MikeMcC399 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56ac743bebb13694b888673bb7257f4b97a4b7fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width