Security policy
Reporting a vulnerability
Please report security problems privately, never in a public issue, pull request, or discussion.
Report it here: github.com/OmarAlex24/everdoc/security/advisories/new (GitHub private vulnerability reporting; only the maintainers can see it).
Include what you can of:
- the affected package and version (or commit), and how Everdoc was run (CLI, GitHub Action,
everdoc serve, the Cloudflare worker, the MCP server); - the steps or a minimal repository and config that reproduce it;
- what an attacker gains (read a token, read private code, run code, deface a site, …).
What happens next:
- We acknowledge the report within 3 business days and send a first assessment within 7.
- We keep you informed while we fix it, and agree on a disclosure date with you. The default is publication when a fixed release is available, at most 90 days after the report.
- We credit you in the advisory unless you ask us not to.
Please do not test against sites or repositories you do not own, and do not access, modify, or keep data that is not yours beyond what is needed to show the problem.
Supported versions
Everdoc is pre-1.0. Security fixes land on main and in the next release; the GitHub Action is fixed
for everyone who uses OmarAlex24/everdoc@main. Pin a commit SHA if you need a frozen version, and
update it when an advisory is published.
What Everdoc guarantees for private repositories
Everdoc reads private code with a token you provide, so these are treated as security properties. A violation is a vulnerability; report it as above.
- Tokens stay out of outputs. A token is read from the environment variable named by
repo.tokenEnv(orEVERDOC_GIT_TOKEN,GITHUB_TOKEN,GITLAB_TOKENas fallbacks) and never lands insnapshot.json,everdoc.json, Markdown,llms.txt, HTML, logs, or error messages. Git's error output is scrubbed of the token, its base64 form,Authorizationvalues, anduser:password@before it is shown. - Tokens stay out of git state and process lists. The token reaches git as an
Authorizationheader for that host only, throughGIT_CONFIG_*environment entries: never written to.git/config, never on a command line (wherepswould show it), and the remote URL is never rewritten. - No credentials in config. URLs with embedded credentials (
https://user:token@host/…) are rejected, and tokens are refused over plainhttp://except to loopback hosts. - Read-only access. Everdoc reads refs and blobs (
git ls-tree,git cat-file) and never changes the working tree, the index, the current branch, or the remote. A fine-grained token with Contents: read-only is enough. - You decide what is published.
privacystrips links to the git host (stripSourceLinks), redacts env var defaults before any output exists (redactEnvDefaults), and keeps the site out of search engines (noindex). The generated Cloudflare worker requires a bearer token on/mcpwhenEVERDOC_TOKENis set (compared in constant time), and on every route withEVERDOC_PROTECT_ALL. The private repositories guide covers keeping a site behind SSO.
Scope
In scope: every package in this repository, the composite GitHub Action (action.yml), the generated
Cloudflare _worker.js, everdoc serve, and the MCP server. Out of scope: the content of repositories
you document (Everdoc publishes what you point it at), and denial of service from analyzing an
intentionally huge or hostile repository on your own machine.