Skip to content

Fix CodeQL security alerts / 修复 CodeQL 安全告警#4328

Open
SivanCola wants to merge 2 commits into
main-v2from
fix/codeql-security-alerts
Open

Fix CodeQL security alerts / 修复 CodeQL 安全告警#4328
SivanCola wants to merge 2 commits into
main-v2from
fix/codeql-security-alerts

Conversation

@SivanCola

Copy link
Copy Markdown
Collaborator

Summary

  • Harden archive extraction against traversal and unsafe symlink targets.
  • Reject HTTP shell shortcuts and constrain session resume paths to the session directory.
  • Scope frontend file references to workspace-relative paths and tighten checkpoint path containment.

Verification

  • go test ./internal/codegraph ./internal/control ./internal/serve ./internal/checkpoint ./internal/agent ./internal/fileutil
  • CodeQL Go code-scanning suite: 0 results

@SivanCola SivanCola requested a review from esengine as a code owner June 13, 2026 19:40
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development agent Core agent loop (internal/agent, internal/control) mcp MCP servers / plugins (internal/plugin, codegraph) labels Jun 13, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9be176aa2b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/codegraph/install.go Outdated
Comment thread internal/control/refs.go Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent Core agent loop (internal/agent, internal/control) mcp MCP servers / plugins (internal/plugin, codegraph) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant