Skip to content
Snippets Groups Projects
Commit 6b6d8a94 authored by Ned Batchelder's avatar Ned Batchelder
Browse files

Don't use PyYAML's .load() for reading YAML, use .safe_load() to avoid security problems.

parent 14ca42a5
No related branches found
No related tags found
No related merge requests found
......@@ -406,7 +406,7 @@ class ResourceTemplates(object):
log.warning("Skipping unknown template file %s" % template_file)
continue
template_content = resource_string(__name__, os.path.join(dirname, template_file))
template = yaml.load(template_content)
template = yaml.safe_load(template_content)
templates.append(Template(**template))
return templates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment