diff --git a/mashumaro/serializer/yaml.py b/mashumaro/serializer/yaml.py index 32543ad2..fbf8d258 100644 --- a/mashumaro/serializer/yaml.py +++ b/mashumaro/serializer/yaml.py @@ -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)