Do not open a public issue. Use GitHub's private reporting on the Security tab (https://github.com/sergey-bar/Lupin/security/advisories/new), or email the maintainer directly if that route is unavailable to you.
Please include: what the affected version or commit is, what an attacker can do, the steps to reproduce it, and what you already tried. A proof of concept is worth more than a description.
| Severity | First response | Target for a fix or a mitigation |
|---|---|---|
| Critical | 2 business days | 7 days |
| High | 5 business days | 14 days |
| Medium | 10 business days | next release |
| Low | 10 business days | next release |
"Response" means a human has read the report and told you what they think of it, not
that the fix has shipped. A vulnerability that is accepted and not yet fixed gets a
told-you-so, and a not_configured reason where one applies.
The three-outcome rule applies here too: if something is not done, the report says
not_configured with a reason rather than reporting a pass. If a fix is partial, the
partial state is the reported state.
This is a self-hosted, single-tenant product. The security boundary that matters is the one between a workspace's data and everything else, and the one between a reporter or runner and the API.
- Authorization.
WORKSPACE_IDis the only tenancy boundary in the system. Every workspace-scoped read or write needs a cross-workspace isolation test, and a change that adds one without a test is the reportable defect. - Secrets. Six installation secrets are read by
@lupin/configand validated at startup:COOKIE_SECRET,SESSION_SECRET,VAULT_SECRET,LUPIN_API_KEY,REPORTER_SECRETandRUNNER_REGISTRATION_SECRET. A placeholder is refused whenNODE_ENV=production—isSecretPlaceholdermatches documented development values exactly, plus two cookie-secret fragments, and startup fails rather than warns. If a configuration carrying a placeholder starts in production, that is a reportable bug. - Sealed rows. Vault ciphertext is bound to its row identity by GCM additional
authenticated data:
aadForbuilds length-prefixed AAD and bothcreateCipherivandcreateDecipherivset it, so one row's ciphertext cannot be opened as another's. A change that drops the AAD is a reportable defect even if nothing else changed. - Untrusted input. The
x-request-idheader is attacker-controlled and flows into logs and persisted audit rows.normaliseRequestIdis the only place that decides, and it replaces anything that is not a short identifier rather than truncating it. A second site deciding independently is a reportable defect.
- Host compromise. This product is self-hosted; an attacker who already has root on the box owns the database.
- Denial of service by volume. There is no rate limit on the run-creation path by design, because the product assumes a trusted operator and a machine that is not public. Putting it on the open internet is out of scope for this threat model — which is itself a thing to report if the documentation implies otherwise.
- The
BK-1execution engines. Four of the five agent domains answer an explicit501 NOT_CONFIGUREDnaming the domain and the action. An unconfigured engine cannot be exploited, so this is not a vulnerability; the thing to report would be an engine that answers as though configured. - Cross-tenant access.
WORKSPACE_IDis the tenancy boundary and the tenancy migrations (0015,0017,0018,0019,0020) are on disk, so this is live now: a workspace-scoped read or write that does not check the workspace is reportable. What is not here is row-level security beneath it, so the boundary is one predicate at the query and not a database guarantee. The isolation matrix that would prove each route holds is tracked as C-6 and the openBlockerRF-5.
pnpm security:secrets and pnpm security:secrets:history are the dependency-free
floor, and they run in CI. pnpm security:static adds semgrep and gitleaks and exits
non-zero when it cannot produce a scan, because an unrun security scan is not a pass.
LUPIN_HOST_SCANNERS=unavailable records a scanner that could not run as
not_configured — and a scanner killed at its timeout counts as unavailable, never as
clean, so a stall cannot become a green gate.
Every response in this repository carries a stable code and a correlation id, and the
ledger at docs/quality/findings-ledger.json records every confirmed defect with its
evidence. A report that arrives is therefore triaged against a machine-checked record
rather than a memory, and you are welcome to ask what a given row's status is by
reading it yourself.