[Bug]: Leaking JWT token in GET request to /api/events
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
- Open devtools in navidrome web when you logged.
- Open the network tab
- Restart the page
- Open a request to /api/events
- Find the jwt token in the GET request.
- 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
- OS: Debian 13
- Browser: Firefox 142.0.1
- Client: Navidrome WebHow Navidrome is installed?
Docker
Configuration
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
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
Code of Conduct
- I agree to follow Navidrome's Code of Conduct
Source: navidrome/navidrome