Title: DEP0169 DeprecationWarning: url.parse() when url.resolve() used (node_modules context) · Issue #61724 · nodejs/node · GitHub
Open Graph Title: DEP0169 DeprecationWarning: url.parse() when url.resolve() used (node_modules context) · Issue #61724 · nodejs/node
X Title: DEP0169 DeprecationWarning: url.parse() when url.resolve() used (node_modules context) · Issue #61724 · nodejs/node
Description: Version 24.x & 25.x - see #61724 (comment) for details 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 ...
Open Graph Description: Version 24.x & 25.x - see #61724 (comment) for details 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 ...
X Description: Version 24.x & 25.x - see #61724 (comment) for details 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/Li...
Opengraph URL: https://github.com/nodejs/node/issues/61724
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DEP0169 DeprecationWarning: url.parse() when url.resolve() used (node_modules context)","articleBody":"### Version\n\n24.x \u0026 25.x - see https://github.com/nodejs/node/issues/61724#issuecomment-3883242909 for details\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)\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\n### How often does it reproduce? Is there a required condition?\n\nFor the above steps, it always reproduces in Node.js 25.4.0 - 25.6.0. It is a regression from Node.js 25.3.0.\n\nIf the `url.resolve()` call is embedded in an npm package, it depends how the corresponding module is called, whether or not a deprecation warning appears. See the additional information section below for examples.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe example with only `url.resolve()` should run without producing a deprecation warning.\n\nThe history section of [url.resolve(from, to)](https://nodejs.org/docs/latest/api/url.html#urlresolvefrom-to) states that the deprecation was revoked in v15.13.0, v14.17.0 and there is no entry for any higher version.\n\n[DEP0169](https://nodejs.org/docs/latest/api/deprecations.html#DEP0169) lists [url.parse()](https://nodejs.org/docs/latest/api/url.html#urlparseurlstring-parsequerystring-slashesdenotehost) explicitly. It does not include any direct reference to `url.resolve()`.\n\n### What do you see instead?\n\n```text\n$ node url-resolve.js\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\n### Additional information\n\nI originally noticed this with Cypress, on Ubuntu 24.04.3 LTS, Node.js 25.6.0, with steps to reproduce:\n\n```shell\ncd $(mktemp -d)\nnpm install cypress\nnpx cypress install --force\n```\n\nwhere the call is from `/node_modules/cypress/dist/tasks/download.js`.\n\nThe following steps however do **NOT** cause any deprecation warning, even though download is also run:\n\n```shell\nrm -rf ~/.cache/Cypress\ncd $(mktemp -d)\nnpm install cypress\n```\n","author":{"url":"https://github.com/MikeMcC399","@type":"Person","name":"MikeMcC399"},"datePublished":"2026-02-07T18:06:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":21},"url":"https://github.com/61724/node/issues/61724"}
| 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:c7873c8c-0370-8433-8677-8e25631b6116 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BFAE:2E7826:1596203:1E05FEC:6A4C05CC |
| html-safe-nonce | 7ac290e37eeb6a748d6ce94709bbf1f087661938442537a17416c606c7f3f6a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkFFOjJFNzgyNjoxNTk2MjAzOjFFMDVGRUM6NkE0QzA1Q0MiLCJ2aXNpdG9yX2lkIjoiODg3MTk4Nzc5NzY0NjExNjMwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8640f7d8702fd7a3ab00c3ef30f1ab17eb98140556ed8daa0d01e9c1bf811c28 |
| hovercard-subject-tag | issue:3910867396 |
| 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/61724/issue_layout |
| twitter:image | https://opengraph.githubassets.com/498ed6c2c10555daa76e6c40c7fd634cde95f94d52e07a4660f4b3d0eed97fef/nodejs/node/issues/61724 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/498ed6c2c10555daa76e6c40c7fd634cde95f94d52e07a4660f4b3d0eed97fef/nodejs/node/issues/61724 |
| og:image:alt | Version 24.x & 25.x - see #61724 (comment) for details 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 ... |
| 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 | 940b0dbb4d0fe72558ee760b2ff0f25a504383fdfe404f3a7691ec853b8dc17f |
| 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 | b0267d17ea43e55446153a7e2c60bb6ac3cffd6b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width