Loading advisory.
Loading advisory.
@grackle-ai/server JSON.parse lacks try-catch logic in its gRPC Service AdapterConfig Handling
JSON.parse(env.adapterConfig) is called without error handling in three locations within the gRPC service.
Published 2026-03-25 17:33 UTC · Modified 2026-03-25 17:46 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| @grackle-ai/server | npm | < 0.70.6 | 0.70.6 | npm install @grackle-ai/server@0.70.6 |
JSON.parse(env.adapterConfig) is called without error handling in three locations within the gRPC service. While the data originates from the server's own SQLite database and should always be valid JSON, database corruption, migration errors, or unexpected state could cause an unhandled exception that crashes the gRPC handler.
Additionally, the parsed result is cast as Record<string, unknown> and passed to adapter methods without property validation, creating a theoretical prototype pollution surface if the database is compromised.
Affected code:
packages/server/src/grpc-service.ts:415 — reconnectOrProvision handler
packages/server/src/grpc-service.ts:482 — stopEnvironment handler
packages/server/src/grpc-service.ts:498 — destroyEnvironment handler
Fix: Wrap in try-catch and return a meaningful gRPC error:
let config: Record<string, unknown>;
try {
config = JSON.parse(env.adapterConfig) as Record<string, unknown>;
} catch {
throw new ConnectError("Invalid adapter configuration", Code.Internal);
}Ensure database integrity. Back up the SQLite database regularly.
CWE-754: Improper Check for Unusual or Exceptional Conditions
File: packages/server/src/grpc-service.ts
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
No EPSS history yet. Either the CVE has no score or the scores have not been fetched.