CodeGraph is a research software framework designed to evaluate JVM code analysis, ISO-aligned policy evaluation, grounded LLM explanations, and bounded remediation with re-verification.
It is not a hardened production multi-tenant sandbox.
When deploying or running CodeGraph locally or in testing environments, keep the following security assumptions in mind:
- Single-User & Loopback Only: By default, CodeGraph binds HTTP endpoints to
127.0.0.1(loopback) with no authentication or rate limiting. Exposing the service to untrusted networks without an authenticating reverse proxy is unsafe. - Untrusted Code Ingestion: Uploaded ZIP archives are extracted into a shared workspace directory (
uploaded_code/). While Zip-bomb protections and path traversal checks (safe_extract_zip) are enforced, arbitrary code extracted into the workspace may be compiled during remediation build verification. - Build Execution: Remediation verification runs build tools (
javac,mvn,gradle) against workspace source code. Ingesting code from untrusted sources should occur inside isolated containers or sandboxed virtual environments. - LLM Integration: Source code snippets and graph metadata are transmitted to the configured OpenAI-compatible LLM provider for explanation and remediation patch generation. Do not send confidential code to external API endpoints unless authorized.
If you discover a security vulnerability in CodeGraph, please report it privately using GitHub Private Vulnerability Reporting.
Important: Private vulnerability reporting must be enabled on the repository settings before making this project public. Do not open public GitHub issues or public discussions for security vulnerability reports.
- Submit a private report directly through GitHub: GitHub Private Vulnerability Reporting.
When reporting a vulnerability privately, please provide:
- A brief description of the issue and its potential impact.
- Step-by-step instructions or a minimal proof of concept to reproduce the issue.
- Affected components, endpoints, or environment configurations.
- Acknowledgement: We aim to acknowledge private reports within 3 business days.
- Assessment & Patching: Confirmed security issues will be addressed privately in a dedicated security fix branch before releasing a patch.