llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · code-server

GHSA-JVCP-W94C-MVVH

Session cookie exposed to services opened through the port proxy

Texto original en inglés · Ver en español

Parche disponible
Descargar PNG JSON
CVSS 3.1
6.4
Media
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -1 d de la divulgación
Exposición16 dDesde la divulgación, 5 nov 2026, 6:16 a. m.
Detección13 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir de cerca
Monitorear y programar la remediación
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Si el fabricante actualiza el aviso, vuelve a mirar.Anótala en tu libreta de pendientes serios.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 4.145.0
Monitoreo
Detectada +1
4 nov 26
5 nov 26
18 nov 26
21 nov 26
4 nov 26
8 nov 26
13 nov 26
17 nov 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 4.145.0 code-server · -1 d desde divulgación
Divulgación Publicada GHSA-JVCP-W94C-MVVH divulgada · CVSS 6.4 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### Summary
code-server's session cookie could be read by services opened through the built-in port proxy. The cookie was sent to the proxied service on WebSocket connections, and because it was not marked `HttpOnly`, scripts on proxied pages could read it. The cookie acts as a reusable credential, so anyone who obtains it can sign in to code-server as the user.

### Details
code-server removes its session cookie from requests it forwards to proxied ports. This was only done for regular HTTP requests. WebSocket connections through `/proxy/<port>/`, `/absproxy/<port>/` and the proxy domain still sent the full `Cookie` header, including the session cookie, to the proxied service. Versions before `4.124.2` also sent the cookie on regular HTTP requests.

Separately, the session cookie was set without the `HttpOnly` attribute. Pages served through the path proxy share the code-server origin, so scripts on those pages could read the cookie with `document.cookie`.

### Impact
A malicious service listening on a port that the user opens through the proxy can capture the session cookie and replay it to get full access to code-server, including the terminal and file system, as the user running code-server. To exploit this, the attacker has to control a service reachable by the proxy, and a signed-in user has to open it.

### Patches
Fixed in 4.145.0. The session cookie is now removed from proxied WebSocket connections and is set with `HttpOnly`. Upgrade to 4.145.0 or later.

### Workarounds
Only open trusted services through the code-server proxy. After upgrading, change the code-server password if you previously opened untrusted services through the proxy, since this invalidates any session cookie that may have been captured.

### References
- https://github.com/coder/code-server/pull/8111
- https://github.com/coder/code-server/pull/8110
- https://github.com/coder/code-server/releases/tag/v4.145.0

### Credits
Thanks to @j9tdsn8nmk-hash, @bl4cksku11 and @Iraianbu-tech for reporting this issue.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
4.9/ 10Medio
Vector 4.9 (moderada) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
code-server≤ 4.144.0
4.144.0
4.145.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmcode-server
Corregida 4.145.0 -1 d 4.145.2 no afectada
Versiones corregidas4.145.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/coder/code-server/security/advisories/GHSA-jvcp-w94c-mvvh

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.