Skip to content

[DEP0169] DeprecationWarning: url.parse() behavior is not standardized and prone to errors that have security implications #1763

Open

Description

@joshuamcginnis

Whenever I use this package, my app emits a deprecation warning.

Package Version: @jsforce/jsforce-node": "^3.10.7"
Node Version: v24.5.0

Here's a stack trace of the error with node --trace-deprecation turned on:

(node:5822) [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.
    at urlParse (node:url:134:13)
    at parseURL (webpack-internal:///(action-browser)/./node_modules/node-fetch/lib/index.mjs:1177:9)
    at new Request (webpack-internal:///(action-browser)/./node_modules/node-fetch/lib/index.mjs:1219:17)
    at eval (webpack-internal:///(action-browser)/./node_modules/node-fetch/lib/index.mjs:1458:19)
    at new Promise (<anonymous>)
    at fetch (webpack-internal:///(action-browser)/./node_modules/node-fetch/lib/index.mjs:1456:9)
    at fetchWithRetries (webpack-internal:///(action-browser)/./node_modules/@jsforce/jsforce-node/lib/request.js:124:56)
    at executeWithTimeout (webpack-internal:///(action-browser)/./node_modules/@jsforce/jsforce-node/lib/request-helper.js:90:21)
    at startFetchRequest (webpack-internal:///(action-browser)/./node_modules/@jsforce/jsforce-node/lib/request.js:174:61)
    at request (webpack-internal:///(action-browser)/./node_modules/@jsforce/jsforce-node/lib/request.js:206:5)
    at eval (webpack-internal:///(action-browser)/./node_modules/@jsforce/jsforce-node/lib/transport.js:67:28)
    at StreamPromise.create (webpack-internal:///(action-browser)/./node_modules/@jsforce/jsforce-node/lib/util/promise.js:17:37)
    at Transport.httpRequest (webpack-internal:///(action-browser)/./node_modules/@jsforce/jsforce-node/lib/transport.js:65:40)
    at Connection.loginBySoap (webpack-internal:///(action-browser)/./node_modules/@jsforce/jsforce-node/lib/connection.js:414:48)
    at Connection.login (webpack-internal:///(action-browser)/./node_modules/@jsforce/jsforce-node/lib/connection.js:369:21)
    at SalesforceAPI.login (webpack-internal:///(action-browser)/./lib/vendors/salesforce_api.ts:25:35)

Activity

  1. joshuamcginnis commented on Oct 1, 2025

    @joshuamcginnis
    Author

    I think the solution here is to update the node-fetch dependency to 3.x as the underlying issue was fixed in:
    refactor: Replace url.parse with new URL() #701

  2. added
    area:node-fetch-v2
    on Oct 20, 2025
  3. cristiand391 commented on Oct 20, 2025

    @cristiand391
    Contributor

    added node-fetch v2 label to track these issues.

    jsforce is an isomorphic library (supports node & browser), we can't upgrade to node-fetch v3 bc it dropped support for browsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:node-fetch-v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions