Report it privately through a GitHub security advisory on this repository. Please do not open a public issue for it. If the advisory form is unavailable to you, open an issue that says only "security: please contact me" with no details, and the maintainer will reach you through GitHub.
Say which package and version (or commit) you tested, what an attacker can do, and how to reproduce it. You will get an answer through the advisory, and the fix is credited to you unless you ask otherwise.
Until 1.0, only the newest release on npm and the main branch are supported: a fix ships in a new
release, not as a patch to an older one.
| Piece | Runs on | Trusts |
|---|---|---|
opengso-prod (the middleware) |
your server, on every request | the files opengso generate wrote |
opengso test, generate, prod test |
your machine | nothing it fetches |
opengso start (the dashboard) |
your machine, on loopback by default | only requests that pass the checks below |
- Zero dependencies. Its library contains no jsdom, no AI provider code and no network call, and
npm run check:bundlesfails the build if one appears. - It reads
.opengso/manifest.jsonand the twins it lists once, at boot. A manifest entry that resolves outsidepublicDiris refused and reported, never loaded. - It has no blocking code path, never redirects, and refuses (406) only on a route that has a twin.
- Every page they fetch is untrusted. HTML is parsed with jsdom and page scripts are never
executed:
runScriptsis not enabled anywhere. - A response body is capped at 8 MiB and every request has a timeout.
test --promptquotes anything the site sent (a header, a JSON-LD field) as a single-line code span cut at 400 characters, and tells the coding agent those spans are evidence, not instructions.- Generate writes only inside
publicDirandinternalDir, both of which must be strictly inside the project, and never overwrites a file OpenGSO did not write.
The dashboard can write an API key to disk and start runs that cost money, and any web page you
visit can send requests to a port on your machine. So packages/core/src/server/server.js checks
every request before it reads the body:
- Loopback by default. It binds
127.0.0.1unless you pass--host. - Host check. A request whose
Hostheader is not a loopback name or the address the server was started on, with the right port, gets a 403. This is what stops DNS rebinding. (Bound to a wildcard such as0.0.0.0, any name is let through to the token check instead.) - Origin check. A request carrying an
Originthat does not match itsHostgets a 403. - JSON only. Every API
POSTmust beContent-Type: application/json(415 otherwise), which a plain HTML form cannot send and a cross-origin script cannot send without a preflight the server never grants. Nothing that runs a test or writes a file is reachable byGET. - Body cap. A request body over 2 MiB is refused.
- Token for any other
--host. Binding anything other than loopback mints a random token for that launch. The printed URL carries it as?token=, which is swapped for anHttpOnly,SameSite=Strictcookie; scripts can sendAuthorization: Bearer <token>. Every request without it, page or API, gets a 401. The traffic is still plain HTTP, so only do this on a network you trust. - Headers. Every response carries a
'self'-only Content-Security-Policy,X-Frame-Options: DENY,X-Content-Type-Options: nosniffandReferrer-Policy: no-referrer. - Static files are served only from inside the dashboard's
web/directory; a path that escapes it is refused. - Errors that are not a config problem reach the browser as a generic message; stack traces and paths stay in the terminal.
- It is read from
.envin your project and sent to exactly one place: the AI provider you picked. - It is never written to
opengso.config.json, never logged, and never in an API response./api/statereports only that a key exists, which provider it is for and which file it came from. .envis added to.gitignorebefore the key is written, byopengso settings,opengso startand the dashboard alike.- Only
/api/keycan change where the key goes, and it takes the key and the endpoint in the same request./api/configrefuses any change to theaiblock, so a patch cannot point a saved key at another host. - The AI tiers refuse to run in CI.
- There is no telemetry, analytics or cloud sync, so nothing else could send it anywhere.
- Anything that needs
--hostset to a non-loopback address on a network you do not trust, beyond what the token check promises. - Whatever your AI provider does with the content you send it. Generate's AI tier and
test --contentsend page text to the provider you configured; the free tier and the structural test send nothing. - How a CDN in front of your site caches
Vary: Acceptresponses. That is documented as untested.