GHSA-5j35-xr4g-vwf4

Suggest an improvement
Source
https://github.com/advisories/GHSA-5j35-xr4g-vwf4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-5j35-xr4g-vwf4/GHSA-5j35-xr4g-vwf4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5j35-xr4g-vwf4
Published
2026-03-25T17:32:39Z
Modified
2026-03-25T17:46:26Z
Severity
  • 2.3 (Low) CVSS_V4 - CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
@grackle-ai/server has a Missing Secure Flag on Session Cookie
Details

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:

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
Database specific
{
    "cwe_ids":  [
        "CWE-614"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-03-25T17:32:39Z",
    "nvd_published_at":  null,
    "severity":  "LOW"
}
References

Affected packages

npm / @grackle-ai/server

Package

Name
@grackle-ai/server
View open source insights on deps.dev
Purl
pkg:npm/%40grackle-ai/server

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.70.5

Database specific

last_known_affected_version_range
"<= 0.70.4"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-5j35-xr4g-vwf4/GHSA-5j35-xr4g-vwf4.json"