Description
Using snakeYAML to parse untrusted YAML files may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stack-overflow.
Mitigation
We recommend ensuring that `AllowRecursiveKeys` is never set to `true` and upgrading to a version of this component that is not vulnerable to this specific issue, as the application will still be vulnerable after the upgrade if `AllowRecursiveKeys` is not set to `false`, which is the default configuration since version 1.27.
For more information on setting `AllowRecursiveKeys`, please see this documentation: [https://www.javadoc.io/doc/org.yaml/snakeyaml/latest/org/yaml/snakeyaml/LoaderOptions.html#setAllowRecursiveKeys-boolean-](https://www.javadoc.io/doc/org.yaml/snakeyaml/latest/org/yaml/snakeyaml/LoaderOptions.html#setAllowRecursiveKeys-boolean-)
Note: If this component is included as a bundled/transitive dependency of another component, there may not be an upgrade path. In this instance, we recommend contacting the maintainers who included the vulnerable package. Alternatively, we recommend investigating alternative components or a potential mitigating control.