Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

huangjunsen0406/py-xiaozhi
main @ 841c5f1
1
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
JSON Injection: 1 prior fix. Scrutinize any change in this area.
src/mcp/tools/camera: most-fixed (1 issue). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

JSON Injection: The camera tool manually constructed JSON response strings using f-strings, exposing the application to injection attacks if the dynamic content (such as error messages or file paths) contained unescaped quotes or control characters. This could allow an attacker to alter the structure of the JSON payload sent back to the Model Context Protocol (MCP) host.