Skip to content

fix(core): consolidate 3 security fixes from PRs #1470 #1474 - #1486

Closed
molecule-ai[bot] wants to merge 2 commits into
stagingfrom
fix/security-consolidated-v2
Closed

molecule-ai[bot] wants to merge 2 commits into
stagingfrom
fix/security-consolidated-v2

Conversation

@molecule-ai

@molecule-ai molecule-ai Bot commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Consolidates 3 security fixes from stalled PRs into a clean branch from staging.

  • CWE-22 (F1434): copyFilesToContainer uses cleaned path in Join with defense-in-depth prefix guard (staging 42bc14e)
  • CWE-78 (F1085): deleteViaEphemeral rm arg scoped to /configs/ + validateRelPath guard
  • SSRF dedup: mcp_tools.go removes net/url/SSRF helpers now in a2a_proxy.go (consistent with staging)

Testing

  • container_files_test.go: 85-line regression suite covering CWE-22/CWE-78 path traversal and rm argument scoping

Why this PR

PRs #1460 and #1472 stuck in CI queue with cancelled runs. Branch created fresh from staging for clean CI run.


🤖 Generated with Claude Code

- CWE-22 (F1434): copyFilesToContainer uses cleaned path in Join + defense-in-depth guard
- CWE-78 (F1085): deleteViaEphemeral rm arg scoped to /configs/ + validateRelPath
- SSRF dedup: mcp_tools.go removes net/url imports (helpers now in a2a_proxy.go)
- Add container_files_test.go: 85-line CWE-22/CWE-78 regression suite

Co-authored-by: DevOps Bot <devops-bot@molecule.ai>
molecule-ai Bot added a commit that referenced this pull request Apr 21, 2026
@molecule-ai molecule-ai Bot closed this Apr 21, 2026
@molecule-ai

molecule-ai Bot commented Apr 21, 2026

Copy link
Copy Markdown
Contributor Author

Closing — superseded by earlier merged PRs. The CWE-22, CWE-78, and SSRF fixes are already on staging via PRs #1465, #1469, and #1474. Do not re-introduce ssrf.go — the canonical implementations are in a2a_proxy_helpers.go and registry.go.

@molecule-ai
molecule-ai Bot deleted the fix/security-consolidated-v2 branch May 20, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants