diff --git a/bin/yaml2json b/bin/yaml2json
index 07da03dc7adb99278d6d8ab805aa0b13fbef60bd..5f7243fe3286f6b370b4778ec707854f4e4d38d7 100755
--- a/bin/yaml2json
+++ b/bin/yaml2json
@@ -4,4 +4,5 @@ import json
 import yaml
 import sys
 
-json.dump(yaml.load(sys.stdin), sys.stdout, indent=4, separators=(',', ': '))
+json.dump(yaml.load(sys.stdin, Loader=yaml.SafeLoader), sys.stdout, indent=4,
+          separators=(',', ': '))
\ No newline at end of file