mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-15 15:32:40 +00:00
- Add DOMPurify CDN to HTML template for sanitizing HTML content - Add escapeHtml helper function to escape user-controlled text - Add sanitizeHtml function using DOMPurify with allowed tags/attributes - Apply sanitization to drawer content before setting innerHTML - Escape user-controlled values in renderTriggerCondition, renderConditionTree, and renderMetadata methods - Add tests to verify XSS protection is in place Co-Authored-By: João <joao@crewai.com>