CVE-2026-129877: DeepAudit AI code-audit platform returns its LLM API keys and GitHub/GitLab tokens to anyone at /api/v1/config/defaults
DeepAudit (lintsinghua/DeepAudit), a self-hosted multi-agent AI code-audit tool, exposes GET /api/v1/config/defaults with no authentication. The response includes the server's configured OpenAI, Gemini, Claude, Qwen and DeepSeek API keys plus its GitHub and GitLab tokens, so anyone who can reach the backend can take the operator's LLM credits and repository access. NVD lists 2.0.0-beta.1 through 3.8.0 as affected and names no fixed version.
What it is
get_default_config() in backend/app/api/v1/endpoints/config.py reads OPENAI_API_KEY, GITHUB_TOKEN, GITLAB_TOKEN and other provider keys from settings, and the /defaults route has no auth dependency (its own docstring says no authentication required).
Researchers at vul.yulun.ac.cn published this on 6 November 2026 together with three other DeepAudit issues: RCE via a project-ID path traversal in ZIP upload, server-side file read/SSRF through the PDF report subtitle, and leaking the global Git token via a GitLab/Gitea repository URL pointing at an attacker host. Those three have no CVE in our feed yet.
NVD published CVE-2026-129877 (VulnCheck) on 16 November 2026 covering 2.0.0-beta.1 through 3.8.0, the newest tag. There is no patched release listed.
How to check
- From outside your network, request http://<deepaudit-host>/api/v1/config/defaults without a cookie or Authorization header; if the JSON contains non-empty key or token fields you are exposed.
How to fix
- Don't expose the DeepAudit backend to the internet or untrusted networks; put it behind VPN or an authenticating proxy that also covers /api/v1/config/defaults.
- Rotate every LLM API key and GitHub/GitLab token configured on an exposed instance, and give the Git tokens the least scope possible.
- Watch the DeepAudit repository for a release that adds authentication to this endpoint.
curl -s http://DEEPAUDIT_HOST:8000/api/v1/config/defaults | grep -Eo '"(openaiApiKey|claudeApiKey|geminiApiKey|githubToken|gitlabToken)": *"[^"]+' | sed 's/: *".*/: <set>/'