GHSA-5j35-xr4g-vwf4: @grackle ai/server @grackle-ai/server Has A Missing Secure Vulnerability
LOWGHSA-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
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.
npm install @grackle-ai/server@0.70.5
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
GHSA-5j35-xr4g-vwf4 Affected @grackle ai/server Versions
1 component(s)| 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?
Which @grackle ai/server versions are affected?
What version fixes GHSA-5j35-xr4g-vwf4?
Is @grackle-ai/server affected?
What CWE is associated with GHSA-5j35-xr4g-vwf4?
How can I check npm dependencies for GHSA-5j35-xr4g-vwf4?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}