vetkit.java.deserialization.snakeyaml-unsafe-load
Request data is loaded with a default SnakeYAML constructor, which instantiates arbitrary classes in SnakeYAML 1.x.
Last updated:
Suite: Security
java
Request data is loaded with a default SnakeYAML constructor, which instantiates arbitrary classes in SnakeYAML 1.x.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use new Yaml(new SafeConstructor(new LoaderOptions())) (or upgrade to SnakeYAML 2.x, which blocks global tags by default) and map the result onto explicit types.
References
Source: packages/engine/rules/sast/java.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.