Security policy¶
Supported versions¶
Every package in lattice is pre-release (0.x). Security fixes are made on main and released in the package's next version. Once a package ships 1.0, its latest minor release receives fixes.
Reporting a vulnerability¶
Please do not open a public issue. Report vulnerabilities privately through GitHub's private vulnerability reporting.
Include what you can of:
- the affected package and module (such as artifactr's
workspaceor evalr'slangfuse), or for stackr the area (a profile or service, a script, the application template), and its version or commit - a description of the issue and its impact
- steps to reproduce, or a proof of concept
You can expect an acknowledgement within a week. Once a fix is available, we will publish an advisory crediting you, unless you prefer otherwise.
Scope notes¶
artifactr enforces tenant isolation through scoped workspace handles (artifactr ADR-0011). Any way to read or write another tenant's data through the public API is a vulnerability. Authentication itself is the host application's responsibility, through the resolve_actor hook.
reflexr enforces tenant isolation through scoped workspace handles (reflexr ADR-0016). Any way to read or write another tenant's workspaces through the public API is a vulnerability, as is any way for event data to reach a query other than as a bound parameter. Authentication itself is the host application's responsibility, through the resolve_actor hook.
evalr reads the inputs it judges (threads, runs, artifacts) and sends them to the evaluators the application configures: a language model, TypeSafe's API, Langfuse or the Hugging Face Hub. Any way for evalr to send data somewhere the application did not configure is a vulnerability, as is loading a saved judge or dataset in a way that executes code from it, or a dataset name that makes a store read or write outside its root. API keys are the application's to supply; evalr never logs them or records them on spans.
grantr decides who may do what, for artifactr, reflexr and portalr, and keeps the record of it (grantr ADR-0001). Any way for a command or read to succeed that its subject's roles and grants do not allow is a vulnerability, as is any way to give oneself more access than the roles one holds allow (grantr ADR-0010), to pass a service principal's id for a library's own actor (ADR-0028), to change access without an entry in the audit log, or to read or write another tenant's rows through its SQL storage, whether by its scoping or by defeating its row-level security, which is the second line of defence (ADR-0026). A check that fails open is the same. How a person or an API key becomes a subject is the host application's, through the resolve_actor hook.
relayr carries events from artifactr to reflexr and acts for reflexr's rules in artifactr, and what it may do there is bounded by each rule's allowlist and the actors' roles (relayr ADR-0020, ADR-0017). Any way for a rule to write, start a turn or open a thread its allowlist does not allow, to carry an event into a tenant other than the one it came from, or to read or write another tenant's ledger, whether by its scoping or by defeating its row-level security, which is the second line of defence (ADR-0027), is a vulnerability.
portalr serves two UIs and a router of reads of the tools that watch the application: Tempo, Loki, Prometheus, Langfuse and LiteLLM. It also invites people by email, creates tenants, and runs Retry, Skip and Cancel on rules' runs. It asks grantr to allow each read and each of those, and makes each for the caller's tenant (portalr ADR-0011). Any way to read another tenant's traces, logs, metrics, scores or spend, to read what a read is meant to withhold (the attributes and lines of traces and logs are given only when asked for, one at a time: ADR-0030, ADR-0031), to invite, create or run something grantr does not allow, or to make the router send a request to a tool for something the caller was not allowed is a vulnerability, as is a script injected into the UIs, which carry a strict Content-Security-Policy. Sign-in is the application's Supabase Auth.
portr will serve lattice's commands to outside clients over MCP and ACP, each call through lattice-core's enforcer, as the person the client acts for (lattice RFC-0014). Today it only makes what a client is offered, and serves nothing. Once it serves, any way for a client to call a command its connection or its person may not, to skip an approval or a confirmation, or to reach another tenant, is a vulnerability.
lattice-core holds what the libraries must keep identical, and nothing for applications to import: they re-export it. A vulnerability in it is one in each package that does. These are: a span or log record that carries another tenant's id, or none where its tenant is known (lattice_core.otel); redact_access_token leaving an access_token parameter's value in a URL, a query or a path; the tenant-workspace tag (workspace_tag, parse_workspace_tag, request_tags) encoding two different tenants' or workspaces' ids as one tag, which files spend under the wrong tenant (lattice ADR-0019); and a row-level-security helper (TenantSession, tenant_policy, grant) that lets a transaction see, change or add another tenant's rows, or one that names no tenant see any. Report it here, whichever package you met it through.
stackr's defaults are for local development and single hosts. Published ports bind to 127.0.0.1 unless STACKR_BIND says otherwise, and secrets are generated on each machine into a gitignored .env. A default that exposes a service beyond the host, a committed secret, or a script that leaks a secret into logs or process listings is a vulnerability.
Local Supabase is the known exception. Its CLI publishes its ports (54321 to 54327) on every interface, with Supabase's well-known local development keys and the fixed database password postgres. On a machine reachable from a network you don't trust, block those ports with a firewall, or use the plain PostgreSQL adapter (STACKR_DATABASE=postgres).
Vulnerabilities in the services themselves (Supabase, LiteLLM, Langfuse, Grafana and the others) belong with those projects. Tell us as well when stackr's configuration makes one worse, or when a pinned image needs an update.