Please report vulnerabilities privately. Don't open a public issue, pull request or discussion.
Use GitHub's private vulnerability reporting: Report a vulnerability on the repository's Security tab. Only the maintainers see the report, and we work on the fix with you in a private advisory.
Include:
- the affected version or commit;
- what an attacker can do, and what they need first (an account, a platform or workspace role, an inference key, SCIM token, network position);
- steps or a proof of concept to reproduce it;
- any suggested fix.
Open Model Gateway has one maintainer. We aim to reply within 5 business days and to agree a disclosure date with you once we understand the problem. We credit reporters in the fix's release notes unless you'd rather we didn't. Please give us reasonable time to fix the problem before you disclose it. Don't access or change data that isn't yours while testing, and don't send paid provider traffic through an installation you don't operate.
Open Model Gateway is pre-1.0 development software. Security fixes are made on main and released as a patch of the latest minor release. Older minor releases don't get fixes, so upgrade to the latest release to receive them.
| Version | Supported |
|---|---|
| 0.19.x (latest patch) | Yes |
| 0.18.x and earlier builds | No |
Release images are signed from v0.3.0. Verify an image before you deploy it, using the image path and signing identity for that release. Releases through v0.18.0 retain their original ncecere image path and certificate identity after the repository transfer to bitop-dev.
Every push and pull request runs, in CI:
- cargo-deny (
deny.toml): RustSec advisories (vulnerable, unmaintained, unsound and yanked crates fail), a licence allow-list compatible with MIT distribution, and crates.io as the only source. Ignored advisories are listed indeny.tomlwith the reason and the condition for removing them. - npm audit: high and critical advisories in production npm dependencies fail the build; the full audit, dev tooling included, is reported without failing.
- CodeQL (
.github/workflows/codeql.yml): JavaScript/TypeScript and Rust, also weekly.
Dependabot opens weekly grouped updates for Cargo, npm, GitHub Actions and the Dockerfile base images; security updates arrive individually. Release images are scanned by Trivy (fixable HIGH and CRITICAL findings block publishing), carry an SBOM and provenance, and are signed with cosign. Workflow actions are pinned by commit SHA and every Dockerfile base image by digest, and a job whose token can write uses only a short allowlist of actions (scanners and setup steps run read-only, and tools downloaded at run time are pinned by version and checksum); npm run test:supply-chain (run in CI) fails otherwise. See verification.
In scope: the code in this repository, including
- the
open-model-gatewaybinary (API, inference engine, background workers, migrations and CLI) and its default configuration; - the web dashboard in
apps/web/; - the container image built from the
Dockerfileand its entrypoint; - the staging deployment in
deploy/staging/, includingruntime-grants.sql.
Areas we care most about:
- workspace isolation: one workspace reading or changing another's keys, models, limits, files, batches, logs or usage, or an inference key acting outside its workspace;
- personal-workspace privacy: anyone other than the owner, including Platform Admins and Auditors, seeing a personal workspace's keys or request details (platform reports may show aggregate totals only);
- key and credential handling: inference keys authorizing management, revoked keys working again, plaintext keys, upstream credentials or SCIM tokens in responses, logs, the UI or the database, or inference credentials forwarded upstream;
- budget and ledger integrity: bypassing quotas or budgets, admitting work without a reservation, treating unknown usage as zero, or changing immutable price, ledger or audit history;
- SSO and SCIM: signing in without a valid signed ID token and verified email, platform access from OIDC alone, group-mapping or SCIM changes granting roles they shouldn't, or removing the last Platform Admin;
- file storage encryption: reading stored files (batch inputs and outputs, Files API uploads) without the master keys, cross-workspace file access, or weakening the per-object encryption;
- local endpoint approval: reaching an upstream that isn't an explicitly approved, pinned destination (SSRF), redirects, ambient proxies, or plain HTTP to a cloud provider;
- prompt and response non-storage: prompt or response bodies, batch lines or file contents written to the database or logs by default;
- browser sessions, CSRF and Origin checks, and the runtime database role's privileges.
Out of scope:
- a specific installation's infrastructure, identity provider, provider accounts or configuration choices (report those to the installation's operator);
- the local demo (
bootstrap-demo,scripts/demo-oidc.mjsand its passwordless issuer) and the development credentials incompose.yamland.env.example; - cost differences between the gateway's configured price estimates and a provider's invoice;
- behaviour of upstream providers and models, including model output and prompt injection that stays inside the caller's own workspace;
- denial of service by volume alone, and findings that need a compromised host, database owner role or master key;
- vulnerabilities in dependencies with no demonstrated impact on this project (report them upstream).
Operators: see architecture for the security boundaries, identity, file storage, staging for the database role split, and operations for upgrades, backups and secret rotation.