CVE-2026-142297: Cosmos Server before 0.24.0 SSRF via favicon and ping API endpoints
Cosmos Server before 0.24.0 contains a server-side request forgery vulnerability that allows authenticated non-admin users to make the server request arbitrary URLs via the q parameter. Attackers can abuse /cosmos/api/ping and /cosmos/api/favicon, which follow redirects without host restrictions, to probe internal services and read image or octet-stream responses.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.24.0
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated non-admin Cosmos Server user can exploit it. The attack can be performed remotely and does not require user interaction.
What access does an attacker need to gain from the flaw?
The attacker needs an authenticated account with non-admin privileges and must be able to submit a URL through the q parameter to the ping or favicon API endpoint.
What could an attacker do through the vulnerable endpoints?
They can cause the server to request arbitrary URLs, including by following redirects without host restrictions. This can be used to probe internal services and read responses served as images or octet-stream content.
Which API endpoints should be investigated for attempted exploitation?
Review requests to /cosmos/api/ping and /cosmos/api/favicon, particularly requests containing q parameters that reference unexpected, internal, or redirecting URLs.