Repository navigation
Graphrt 0.2.1
Security patch release for 0.2.0, recommended for every 0.2.0 user. It fixes sandbox limits that could be switched off, secret plaintext in error messages and code outputs, more SSRF address forms, unbounded concurrent runs and DNS rebinding in graphrt serve, predictable temp directories, and a SQLite CVE. No breaking API changes, but read the upgrade notes (MSRV and new serve limits).
Upgrade notes
- MSRV:
graphrt-ragnow needs Rust 1.89 (was 1.85), because the patched SQLite is only inrusqlite0.41, which declares Rust 1.89.- No
rusqlite0.40.x orlibsqlite3-sys0.38.x release carries the fix (the advisory listslibsqlite3-sys >= 0.39.0as patched, and that needs Rust 1.88). graphrt-ffienablesgraphrt-rag(withsqlite) through its defaultragfeature, so a defaultgraphrt-ffibuild needs Rust 1.89 too.graphrt-clialready needed 1.89.- The other crates keep their MSRV.
- No
graphrt serverefuses new and resumed runs with429 Too Many Requestswhile 256 runs execute (--max-active-runs,0= unlimited).graphrt servewithout an API key on a loopback address answers403to requests whoseHostis not a loopback name. If you put a reverse proxy in front of such a server, set an API key or have the proxy forward a loopbackHost.- Plugin manifests asking for
limits.max_message_bytesabove 256 MiB are rejected.
Security
codenode (JavaScript): a workflow could switch off the sandbox's memory and stack limits by asking forlimits.memory_bytes: 0orlimits.stack_bytes: 0(QuickJS reads zero as "unlimited"), and unbounded recursion then overflowed the native stack and aborted the whole process (for examplegraphrt serve).- An operator stack ceiling above 16 MiB had the same effect, and one above the executor's thread stack (2 MiB on tokio's blocking pool) crashed the process too.
- Limits now have floors (1 MiB heap, 64 KiB stack) and a 16 MiB stack ceiling, and JavaScript runs on a dedicated thread sized from the stack limit, so deep recursion is always a catchable
RangeError. - The
graphrt-codetokiofeature no longer changes behaviour and is kept for compatibility.
codenode (JavaScript): error messages thrown by scripts are truncated to 8 KiB, so a script cannot push megabytes into events and run records. An operator time limit too large for the clock no longer panics. A long chain of promise jobs is bounded by the time limit between jobs as well.- Python subprocess runner: the working directory is created fresh and owner-only (
0700) instead of adopting an existing directory at the predictable temp path. - Engine: node error messages are scrubbed of every secret the run has seen (
type: secretenv variables, secret-typed inputs, re-supplied resume secrets, secret outputs) before they reachnode_failed/node_retry/run_failedevents,error_messageoutputs of handled errors, the run store and OTel spans.- Previously an error that echoed a key (a provider body such as "Incorrect API key provided: sk-...", an HTTP error snippet from an echo endpoint, an exception in code) was recorded verbatim.
- New public helpers in
graphrt_core::redact(redact_secrets,SecretSet,MIN_SCRUB_LEN).
- LLM providers: error bodies of failed provider requests are scrubbed of the credentials the request carried (
Authorization,x-api-key,x-goog-api-key,api-keyheaders,keyquery parameters) before they become error messages. OpenAI-compatible gateways and self-hosted servers often echo the full key. codenode: returned strings containing a secret input (key, or"Bearer " + key) are re-tagged as secrets, so they are masked innode_succeededevents, SSE, run records and snapshots while staying usable downstream. Captured Python stdout is scrubbed. Previously they were stored in plaintext.- HTTP egress policy: also blocks the IPv4-translated form
::ffff:0:a.b.c.d(judged by the embedded IPv4 address), the local-use NAT64 prefix64:ff9b:1::/48, Teredo2001::/32and the Azure WireServer address168.63.129.16. - OTel HTTP exporter: redirects are no longer followed, so vendor key headers cannot follow a redirect to another host.
- Bundles:
graphrt run/serve --bundleextracted configs to a fixed, predictable directory in the shared temp dir and reused it if it existed, so another local user could pre-create it and plant symlinks or swapproviders.json(e.g. pointingbase_urlat their server).- Each invocation now extracts into a new owner-only (
0700) directory. - Signatures are checked with strict Ed25519 verification.
- Each invocation now extracts into a new owner-only (
- Plugins:
limits.max_message_bytesis capped at 256 MiB. WebAssembly plugins get at most 4 tables of 100,000 elements (was 8 x 1,000,000), which lived outside thememory_bytesbudget. graphrt serve: new--max-active-runs(default 256,0= unlimited) caps runs executing at once.- Further starts and resumes get
429. - Previously
"async": truerequests could start unlimited parallel runs (--max-runsonly bounds kept records). AppState::with_max_active_runssets it for embedders (default unlimited there).
- Further starts and resumes get
graphrt servewithout an API key on a loopback address now accepts only loopbackHostnames (localhost,127.0.0.1,[::1]), blocking DNS rebinding from web pages.- A non-loopback address without a key prints an explicit warning.
- Run store I/O errors no longer return server file paths to clients, and
top_kon/v1/knowledge/retrieveis capped at 100.
Debugoutput ofOtelConfig(OTLP headers) and the MCPStdioConfig(env) /HttpConfig(headers, bearer token) shows names only, never values.- Dependencies:
rusqlite0.40 -> 0.41 (bundled SQLite 3.54.1), fixing RUSTSEC-2026-0459 / CVE-2026-119375 (uninitialized page-cache memory read through a crafted database and-walpair) ingraphrt-rag'sSqliteStore.- This raises
graphrt-rag's MSRV to Rust 1.89 (see the upgrade notes). paste(unmaintained, build-time only, via candle) is acknowledged indeny.toml.
- This raises
- Docs: new docs/security.md (sandbox limits, egress policy, masking guarantees and their limits, deployment knobs). SECURITY.md now has a threat model, explicit scope and supported versions.
Install
curl -fsSL https://github.com/Graphrt/graphrt/releases/download/v0.2.1/install.sh | GRAPHRT_VERSION=0.2.1 sh
# or
cargo install graphrt-cli --version 0.2.1
docker pull ghcr.io/bimapangestu28/graphrt:0.2.1The container image of this release was published at ghcr.io/bimapangestu28/graphrt and stays there. Starting with the next release, images are published at ghcr.io/graphrt/graphrt.
Full changelog: CHANGELOG.md · v0.2.0...v0.2.1