Skip to content

Commit

Permalink
Security fix for pyyaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Jan 20, 2019
1 parent 0998233 commit e0cc6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mashumaro/serializer/yaml.py
Expand Up @@ -9,4 +9,4 @@ def to_yaml(self):

@classmethod
def from_yaml(cls, data: bytes):
return cls.from_dict(yaml.load(data), use_bytes=False)
return cls.from_dict(yaml.safe_load(data), use_bytes=False)

0 comments on commit e0cc6ba

Please sign in to comment.