diff --git a/yatiml/dumper.py b/yatiml/dumper.py
index <HASH>..<HASH> 100644
--- a/yatiml/dumper.py
+++ b/yatiml/dumper.py
@@ -73,7 +73,7 @@ class Representer:
             class_.yatiml_sweeten(represented_object)
 
 
-class Dumper(yaml.Dumper):
+class Dumper(yaml.SafeDumper):
     """The YAtiML Dumper class.
 
     Derive your own Dumper class from this one, then add classes to it \
diff --git a/yatiml/loader.py b/yatiml/loader.py
index <HASH>..<HASH> 100644
--- a/yatiml/loader.py
+++ b/yatiml/loader.py
@@ -94,7 +94,7 @@ class Constructor:
                     node.start_mark, os.linesep, self.class_.__name__, node)))
 
 
-class Loader(yaml.Loader):
+class Loader(yaml.SafeLoader):
     def __init__(self, *args: Any, **kwargs: Any) -> None:
         super().__init__(*args, **kwargs)
         self.__recognizer = Recognizer(self._registered_classes)
Use SafeLoader and SafeDumper