#4514·navidrome

[Bug]: Leaking JWT token in GET request to /api/events

Author: timofej673Created Sep 6, 2025Updated Sep 21, 2026
Labelsbugtriagestale

I confirm that:

  • I have searched the existing open AND closed issues to see if an issue already exists for the bug I've encountered
  • I'm using the latest version (your issue may have been fixed already)

Version

0.58.0 (9dbe0c18)

Current Behavior

The JWT token is transmitted in clear text in a GET request to the /api/events endpoint, logging in certain cases in reverse proxy servers (if any), which leads to the disclosure of the user's JWT token

Expected Behavior

The JWT token must be passed in a POST request, or by any other means that do not result in logging in reverse proxy servers or other intermediaries.

Steps To Reproduce

  1. Open devtools in navidrome web when you logged.
  2. Open the network tab
  3. Restart the page
  4. Open a request to /api/events
  5. Find the jwt token in the GET request.
  6. Also, in certain cases, it can be logged in reverse proxy servers (for example, if the connection is suddenly broken, caddy can log this by default)

Environment

markdown
- OS: Debian 13
- Browser: Firefox 142.0.1 
- Client: Navidrome Web

How Navidrome is installed?

Docker

Configuration

toml
services:
  navidrome:
    image: deluan/navidrome:latest
    user: <redacted>
    ports:
      - "4533:4533"
    restart: unless-stopped
    container_name: navidrome
    environment:
      ND_SCANSCHEDULE: 0
      ND_LOGLEVEL: info
      ND_SESSIONTIMEOUT: 168h
      ND_ENABLESHARING: "true"
      ND_BASEURL: "<redacted>"
      ND_LISTENBRAINZ_BASEURL: "<redacted>"
    volumes:
      <redacted>

Relevant log output

bash
I can't provide it at the moment, sorry.

Anything else?

Sorry for not being able to provide some information. I hope the information I provided is enough I also attach a screenshot of the request so that everything is clear

And yes, to be honest, it's a little annoying for me to provide SO much information. I think this case does not require such information that I did not provide. And yes, as I understand it, this endpoint is NOT part of the subsonic api - which means it can be changed without the risk of breaking something Image

Code of Conduct

  • I agree to follow Navidrome's Code of Conduct