| Version | Supported |
|---|---|
| 1.0.x | Yes |
| < 1.0 | No |
If you believe you have found a security vulnerability in HiMe, please do not open a public GitHub issue. Instead, report it privately by opening a GitHub security advisory on this repository.
When reporting, please include:
- A description of the issue and its potential impact.
- Steps to reproduce, ideally with a minimal proof of concept.
- The affected version / commit hash.
- Any suggested mitigation, if you have one.
We aim to acknowledge new reports within 7 days and provide a remediation plan within 30 days for confirmed vulnerabilities.
HiMe processes sensitive personal health data and runs an autonomous LLM agent that can execute code, write SQL, and render HTML. We are particularly interested in reports concerning:
- Authentication / authorization bypass on the FastAPI backend.
- Code execution flaws in the
codetool sandbox or in agent-generated personalised pages. - SQL injection or path traversal in any tool or API endpoint.
- Leakage of secrets from
.env, memory DBs, or logs. - Cross-site scripting in agent-generated HTML served by
/api/personalised-pages/. - Messaging gateway authorization issues — unauthorized
chat_ids on Telegram / Feishu / WeChat, or bypass of IM default-deny allowlists; unauthorized access to another user's in-app chat history orchat-imageassets (bearer auth / per-userimage_storechecks). - Prompt injection / jailbreak attacks against the agent that steer it into calling tools in unintended ways — for example, a malicious string in synced health data or user-supplied text coercing the agent to run harmful Python through the
codetool, write to unauthorised memory tables, or exfiltrate data. - Tool-definition fuzzing — malformed tool arguments (SQL payloads, unsafe imports in
create_page, resource-exhausting inputs tocode) that bypass the validation inbackend/agent/tools/orpage_helpers.py. - Resource-exhaustion / DoS via agent loops — unbounded
codeexecution, runawaysqlqueries, or context-overflow retry storms.
- Issues that require physical access to the user's machine.
- Self-XSS or social engineering against a user with admin access to their own deployment.
- Vulnerabilities in third-party LLM providers or APIs that HiMe calls into. Note that health-related data is sent to whichever LLM provider the operator configures; that provider is outside HiMe's trust boundary. See
PRIVACY.mdfor the full data-flow description. - Agent hallucinations or factually incorrect analysis that is not caused by a code defect. The
fact_verifierand evidence buttons surface the tool-call trail, but the agent is a research-grade LLM, not a medical device.
HiMe is designed to be self-hosted. By default it stores all health data, agent memory, and chat history (including the in-app iOS transcript in the memory DB) locally on the operator's machine. The platform does not phone home. Optional IM gateways (Telegram, Feishu, WeChat) route messages through those providers' infrastructure. Optional APNs push sends notification metadata to Apple's servers when configured.
If you intend to expose HiMe beyond localhost, you must configure authentication (API_AUTH_TOKEN) and tighten CORS_ORIGINS. See docs/DEPLOYMENT.md for guidance.