Skip to content
vetkitChecksChangelogDocumentationBlogComparisons

Kotlin SpEL injection: request data evaluated as code

Rule ID: vetkit.kotlin.code-injection.expression-language

Request data is evaluated as a SpEL expression, which allows remote code execution.

Last updated:

Suite: Security

kotlin

Request data is evaluated as a SpEL expression, 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 a SimpleEvaluationContext instead of StandardEvaluationContext.

References

Source: packages/engine/rules/sast/kotlin.yml.

Related checks

Check your own repository for this

vetkit runs this rule as part of a repository audit, alongside secret scanning, dependency vulnerabilities, code quality and AI code risk checks. It reads a temporary checkout and never executes your code.

Start with the free Security Quick Scan · See how the platform works

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.