GHSA-5j35-xr4g-vwf4: @grackle ai/server @grackle-ai/server Has A Missing Secure Vulnerability

LOW
CWE-614
Published
Advisory Summary

GHSA-5j35-xr4g-vwf4 is a LOW @grackle-ai/server has a missing secure vulnerability (CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute) affecting @grackle ai/server libraries in the npm ecosystem. The issue involves @grackle-ai/server has a missing secure flag on session cookie. Remediation is available by upgrading affected packages to version 0.70.5.

GHSA-5j35-xr4g-vwf4 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-5j35-xr4g-vwf4
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute
Affected Product @grackle ai/server
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-5j35-xr4g-vwf4

To remediate this vulnerability, upgrade all affected @grackle ai/server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@grackle-ai/server fixed: 0.70.5
npm install @grackle-ai/server@0.70.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @grackle-ai/server

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-5j35-xr4g-vwf4, inspect your project dependencies using npm:

npm ls @grackle-ai/server

Analyze the terminal output to locate any version of @grackle ai/server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.70.5), your application is affected.

Note: The npm ls @grackle-ai/server command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute, where the secure attribute for sensitive cookies in https sessions is not set. In @grackle ai/server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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`

GHSA-5j35-xr4g-vwf4 Affected @grackle ai/server Versions

1 component(s)
Fixed Versions:
0.70.5
Product / Package Ecosystem Affected Versions Fixed Version
@grackle-ai/server
npm
< 0.70.5
0.70.5

References

Frequently Asked Questions

What is GHSA-5j35-xr4g-vwf4?
GHSA-5j35-xr4g-vwf4 is a security vulnerability in @grackle ai/server involving @grackle-ai/server has a Missing Secure Flag on Session Cookie under CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute.
Which @grackle ai/server versions are affected?
Affected versions include releases prior to 0.70.5 across affected packages: @grackle-ai/server.
What version fixes GHSA-5j35-xr4g-vwf4?
Upgrading to 0.70.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @grackle-ai/server affected?
Yes, @grackle-ai/server is affected in releases prior to 0.70.5. Upgrade your dependency to 0.70.5 or later.
What CWE is associated with GHSA-5j35-xr4g-vwf4?
GHSA-5j35-xr4g-vwf4 is classified under CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute (The Secure attribute for sensitive cookies in HTTPS sessions is not set.).
How can I check npm dependencies for GHSA-5j35-xr4g-vwf4?
Run the dependency tree command: 'npm ls @grackle-ai/server'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5j35-xr4g-vwf4",
  "modified" : "2026-03-25T17:32:39Z",
  "published" : "2026-03-25T17:32:39Z",
  "aliases" : [ ],
  "summary" : "@grackle-ai/server has a Missing Secure Flag on Session Cookie",
  "details" : "### Impact\n\nThe 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.\n\nSince 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.\n\n**Affected code:**\n- `packages/server/src/session.ts:76` — cookie string lacks `; Secure` attribute\n\n### Patches\n\n0.70.5\n\n**Fix:** Conditionally add `; Secure` when served over HTTPS or when `--allow-network` is enabled:\n```typescript\nconst securePart = isHttps ? \"; Secure\" : \"\";\nreturn `${SESSION_COOKIE_NAME}=${cookieValue}; HttpOnly; SameSite=Lax; Path=/${securePart}; Max-Age=${maxAge}`;\n```\n\n### Workarounds\n\nDo not use `--allow-network` over untrusted networks without a TLS-terminating reverse proxy.\n\n### Resources\n\n- OWASP: Secure Cookie Attribute\n- File: `packages/server/src/session.ts`",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@grackle-ai/server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.70.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.70.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nick-pape/grackle/security/advisories/GHSA-5j35-xr4g-vwf4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nick-pape/grackle"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-614" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-25T17:32:39Z",
    "nvd_published_at" : null
  }
}