Skip to content
vetkitChecksChangelogDocumentation

vetkit.java.code-injection.expression-language

Request data is evaluated as an expression (SpEL/OGNL/MVEL/JEXL/EL), which allows remote code execution.

Last updated:

Suite: Security

java

Request data is evaluated as an expression (SpEL/OGNL/MVEL/JEXL/EL), which allows remote code execution.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Never evaluate user-supplied expressions. Use fixed expressions with user values passed as variables, and for SpEL a SimpleEvaluationContext instead of StandardEvaluationContext.

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.