PT-2026-30392 · Npm · @Grackle-Ai/Server

Publicado

2026-03-25

·

Atualizado

2026-03-25

CVSS v4.0

2.3

Baixa

VetorAV:A/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Impact

The session cookie is set with HttpOnly; SameSite=Lax; Path=/ but does not include the Secure flag. This means the cookie will be sent over plain HTTP connections.
Since the server binds to 127.0.0.1 by default and uses HTTP (not HTTPS), this is acceptable for localhost use. However, when --allow-network is used to bind to 0.0.0.0, cookies could be transmitted over insecure network connections and intercepted by an attacker.
Affected code:
  • packages/server/src/session.ts:76 — cookie string lacks ; Secure attribute

Patches

0.70.5
Fix: Conditionally add ; Secure when served over HTTPS or when --allow-network is enabled:
typescript
const securePart = isHttps ? "; Secure" : "";
return `${SESSION COOKIE NAME}=${cookieValue}; HttpOnly; SameSite=Lax; Path=/${securePart}; Max-Age=${maxAge}`;

Workarounds

Do not use --allow-network over untrusted networks without a TLS-terminating reverse proxy.

Resources

  • OWASP: Secure Cookie Attribute
  • File: packages/server/src/session.ts

Correção

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

GHSA-5J35-XR4G-VWF4

Produtos afetados

@Grackle-Ai/Server