diff --git a/crawl4ai/extraction_strategy.py b/crawl4ai/extraction_strategy.py index 6be1c7c7b..13fee62cb 100644 --- a/crawl4ai/extraction_strategy.py +++ b/crawl4ai/extraction_strategy.py @@ -1227,7 +1227,12 @@ def _apply_transform(self, value, transform): def _compute_field(self, item, field): try: if "expression" in field: - return eval(field["expression"], {}, item) + import logging + logging.getLogger(__name__).warning( + "Computed field expressions are disabled for security. " + "Use 'function' for programmatic access." + ) + return field.get("default") elif "function" in field: return field["function"](item) except Exception as e: