vetkit.java.deserialization.xstream-no-allowlist
XStream deserializes XML without a type allow-list, which can lead to remote code execution.
Last updated:
Suite: Security
java
XStream deserializes XML without a type allow-list, which can lead to remote code execution.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Upgrade to XStream 1.4.18+ and configure an explicit allow-list (addPermission(NoTypePermission.NONE) followed by allowTypes(...)) before calling fromXML. Older versions are exploitable by default.
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.