Skip to content
vetkitChecksChangelogDocumentationBlogComparisons

Kotlin Spring Security frameOptions disabled: clickjacking

Rule ID: vetkit.kotlin.spring-security.frame-options-disabled

The X-Frame-Options header is disabled, so pages can be framed by other sites (clickjacking).

Last updated:

Suite: Security

kotlin

The X-Frame-Options header is disabled, so pages can be framed by other sites (clickjacking).

Category: SECURITY · Engine rule severity: INFO

How to fix it

Use frameOptions { sameOrigin = true } (or a CSP frame-ancestors policy) instead of disabling it.

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.