Session hijacking via unchecked WebSocket Origin
Published Mar 23, 2023 · Updated Feb 25, 2025
Missing WebSocket Origin validation in Coder code-server before 4.10.1 allows remote attackers to access data through a victim's session. The WebSocket routes accept cross-origin handshakes without comparing the Origin header with Host or forwarded-host values, letting a hostile page reuse the victim's session. Exploitation requires a logged-in victim to visit attacker-controlled content and is limited to that victim's privileges; older browsers without SameSite cookie support and shared-root subdomains are exposed.
Summary
What happened
Missing WebSocket Origin validation in Coder code-server before 4.10.1 allows remote attackers to access data through a victim's session. The WebSocket routes accept cross-origin handshakes without comparing the Origin header with Host or forwarded-host values, letting a hostile page reuse the victim's session. Exploitation requires a logged-in victim to visit attacker-controlled content and is limited to that victim's privileges; older browsers without SameSite cookie support and shared-root subdomains are exposed.
The record
- CVE
- CVE-2023-26114
- Published
- Mar 23, 2023
- Updated
- Feb 25, 2025
- Vendor
- Coder
- Product
- code-server
- Classifications
- CWE-1385, CWE-346, T1189
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 23, 2023CVE publishedPublication date reported by the CVE source.
- Feb 25, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <4.10.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo