diff --git a/WORKSPACE b/WORKSPACE
index be2dd3e..6226db5 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -36,7 +36,7 @@ maven_install(
"org.ow2.asm:asm:9.1",
"org.ow2.asm:asm-commons:9.1",
"org.ow2.asm:asm-util:9.1",
- "org.yaml:snakeyaml:1.32",
+ "org.yaml:snakeyaml:2.0",
"pl.pragmatists:JUnitParams:1.1.1",
],
repositories = [
diff --git a/src/agent/internals/pom.xml b/src/agent/internals/pom.xml
index f72a5ee..e309342 100644
--- a/src/agent/internals/pom.xml
+++ b/src/agent/internals/pom.xml
@@ -36,7 +36,7 @@
org.yaml
snakeyaml
- 1.32
+ 2.0
compile
diff --git a/src/agent/internals/src/main/java/com/google/devtools/cdbg/debuglets/java/YamlConfigParser.java b/src/agent/internals/src/main/java/com/google/devtools/cdbg/debuglets/java/YamlConfigParser.java
index 6cbef47..90760dd 100644
--- a/src/agent/internals/src/main/java/com/google/devtools/cdbg/debuglets/java/YamlConfigParser.java
+++ b/src/agent/internals/src/main/java/com/google/devtools/cdbg/debuglets/java/YamlConfigParser.java
@@ -24,6 +24,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
+import org.yaml.snakeyaml.LoaderOptions;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.SafeConstructor;
import org.yaml.snakeyaml.error.YAMLException;
@@ -165,7 +166,7 @@ private void addPatternsToSet(Set set, List