Skip to content

v2025.12.1 The punycode module is deprecated. #18741

@mphillippiAPG

Description

@mphillippiAPG

Steps To Reproduce

download bitwarden-cli via MacOS brew.
execute the application with any subcommand
see the error

Expected Result

the output should only provide the config updated message

❯ bw config server https://xxx
Saved setting `config`.

Actual Result

output seen:

❯ bw config server https://xxx
(node:16919) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Saved setting `config`.

node trace output

❯ node --trace-deprecation /opt/homebrew/bin/bw config server https://xxx
(node:17071) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
    at node:punycode:7:10
    at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:398:7)
    at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:337:10)
    at loadBuiltinModule (node:internal/modules/helpers:125:7)
    at loadBuiltinWithHooks (node:internal/modules/cjs/loader:1194:15)
    at Module._load (node:internal/modules/cjs/loader:1284:48)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
    at Module.require (node:internal/modules/cjs/loader:1547:12)
    at require (node:internal/modules/helpers:152:16)
Saved setting `config`.

Screenshots or Videos

No response

Additional Context

this originally occurred in issue #6689 and appeared to be fixed however the problem seems to have regressed in this version.

❯ bw --version
(node:16679) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
2025.12.1
❯ bw sdk-version
(node:16326) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
'main (93a331f)'
❯ node -v
v25.5.0

Operating System

macOS

Operating System Version

15.7.3 (24G419)

Shell

Zsh

Build Version

2025.12.1

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcliCLI Application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions