Skip to content

Bug: [DEP0040] Deprecation warning: punycode module deprecated on Node.js 22+Β #7337

@homelab-alpha

Description

@homelab-alpha

πŸ“‘ I have found these related issues/pull requests

I have checked, but couldn't find anything similar.

πŸ›‘οΈ Security Policy

πŸ“ Description

On startup, Uptime Kuma emits a [DEP0040] deprecation warning because one or more dependencies still import Node.js's built-in punycode module. This module became a runtime deprecation in Node.js v21+ and will eventually be removed from Node.js entirely.

screencast (click to expand)

Image

πŸ‘Ÿ Reproduction steps

  1. Run Uptime Kuma 2.3.0 on Node.js 22+
  2. Observe the startup logs

πŸ‘€ Expected behavior

No deprecation warnings on startup.

πŸ˜“ Actual Behavior

The following warning is emitted on every startup:

(node:7) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

References:

🐻 Uptime-Kuma Version

2.3.0

πŸ’» Operating System and Arch

Ubuntu Server 24.04.4 LTS (GNU/Linux 6.8.0-110-generic x86_64)

🌐 Browser

Brave 1.89.145 - Chromium: 147.0.7727.137 (Official Build) (64-bit)

πŸ–₯️ Deployment Environment

  • Runtime Environment:
    • Docker: Version 26.1.0 (Build 9714adc)
    • Docker Compose: Version 2.26.1
    • Portainer (BE): Version 2.39.1 (LTS: Yes)
    • MariaDB: Version 12.2.2 (LTS: Yes)
  • Database:
    • MariaDB: External
  • Database Storage:
    • Filesystem:
      • Linux: ext4
    • Storage Medium: SSD
  • Uptime Kuma Setup:
    • Number of monitors: 99

πŸ“ Relevant log output

01-05-2026 07:49:13 Welcome to Uptime Kuma
01-05-2026 07:49:13 Your Node.js version: 22.22.2
01-05-2026 07:49:13 2026-05-01T07:49:13+02:00 [SERVER] INFO: Env: production
01-05-2026 07:49:13 2026-05-01T07:49:13+02:00 [SERVER] INFO: Uptime Kuma Version: 2.3.0
01-05-2026 07:49:13 2026-05-01T07:49:13+02:00 [SERVER] INFO: Loading modules
01-05-2026 07:49:15 2026-05-01T07:49:15+02:00 [SERVER] INFO: Creating express and socket.io instance
01-05-2026 07:49:15 2026-05-01T07:49:15+02:00 [SERVER] INFO: Server Type: HTTP
01-05-2026 07:49:15 2026-05-01T07:49:15+02:00 [SERVER] INFO: Data Dir: ./data/
01-05-2026 07:49:15 2026-05-01T07:49:15+02:00 [DB] INFO: Database Type: mariadb
01-05-2026 07:49:15 (node:7) [DEP0040] DeprecationWarning: The `punycode` module is
                    deprecated. Please use a userland alternative instead.
01-05-2026 07:49:15 (Use `node --trace-deprecation ...` to show where the warning was created)
01-05-2026 07:49:15 2026-05-01T07:49:15+02:00 [SERVER] INFO: Connected to the database
01-05-2026 07:49:15 2026-05-01T07:49:15+02:00 [SERVER] INFO: Listening on:
01-05-2026 07:49:15 2026-05-01T07:49:15+02:00 [SERVER] INFO: -  http://localhost:3001
01-05-2026 07:49:15 2026-05-01T07:49:15+02:00 [SERVER] INFO: -  http://172.19.4.2:3001
01-05-2026 07:49:15 2026-05-01T07:49:15+02:00 [SERVER] INFO: -  http://172.20.4.3:3001

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions