Files
MervinPraison 7939a4f12e fix(security): complete remaining eval/exec/XSS fixes from issue #1120
- Replace eval(e) in unified_server.py with AST-based safe math evaluator
- Replace exec(script_content) in run_with_langtrace.py with subprocess.run()
- Add nh3.clean() output sanitization in api.py to prevent XSS from markdown links
- Replace eval() in basic-tools.ts and custom-tool.ts with regex allowlist + Function constructor
- Replace eval() in simplified-api-test.ts and comprehensive-live.test.ts with safe evaluator

All changes are in example files and dev helper scripts only.
No SDK core code modified. Unit tests: 4341 passed, 0 new failures.
2026-03-21 17:49:40 +00:00
..
2026-01-17 16:42:00 +00:00
2025-12-26 08:39:22 +00:00
2025-12-26 13:11:09 +00:00
2025-12-26 08:39:22 +00:00
2025-12-26 08:39:22 +00:00
2026-01-17 16:42:00 +00:00
2026-01-17 16:42:00 +00:00
2026-01-17 16:42:00 +00:00
2025-12-26 08:39:22 +00:00
2025-12-26 08:39:22 +00:00
2025-12-26 13:11:09 +00:00
2025-12-26 13:11:09 +00:00
2026-01-17 16:42:00 +00:00
2026-01-17 16:42:00 +00:00