diff --git a/keeps/delete_old_feature_flags.rb b/keeps/delete_old_feature_flags.rb
index 952245dc48fddbe611aca5a01c7c6e2e3359641d..bf2d074a659f3c802e36f2fe094257c3742ce1f9 100644
--- a/keeps/delete_old_feature_flags.rb
+++ b/keeps/delete_old_feature_flags.rb
@@ -158,7 +158,7 @@ def get_rollout_issue(rollout_issue_url)
     def each_feature_flag
       all_feature_flag_files.map do |f|
         yield(
-          Feature::Definition.new(f, YAML.load_file(f, permitted_classes: [Symbol], symbolize_names: true))
+          Feature::Definition.new(f, YAML.safe_load_file(f, permitted_classes: [Symbol], symbolize_names: true))
         )
       end
     end