Skip to content

Fix or mute Bandit warnings in AgenticCodeExecution MCP servers#108

Open
rbogdano wants to merge 1 commit into
opea-project:mainfrom
rbogdano:fix/bandit-agentic-code-execution
Open

Fix or mute Bandit warnings in AgenticCodeExecution MCP servers#108
rbogdano wants to merge 1 commit into
opea-project:mainfrom
rbogdano:fix/bandit-agentic-code-execution

Conversation

@rbogdano
Copy link
Copy Markdown
Contributor

@rbogdano rbogdano commented May 7, 2026

  • Replace eval() in calculate() with safe AST-based math evaluator across all 5 domain servers (retail, airline, stocks, banking, triage)
  • Add nosec B310 comments for hardcoded tau2-bench and internal URLs (urlretrieve / urlopen calls with known-safe endpoints)

- Replace eval() in calculate() with safe AST-based math evaluator
  across all 5 domain servers (retail, airline, stocks, banking, triage)
- Add nosec B310 comments for hardcoded tau2-bench and internal URLs
  (urlretrieve / urlopen calls with known-safe endpoints)

Signed-off-by: Rafal Bogdanowicz <rafal.bogdanowicz@intel.com>
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.

1 participant