Skip to content
vetkitChecksChangelogDocumentationBlogComparisons

Spring Security Kotlin CORS any origin with credentials

Rule ID: vetkit.kotlin.spring-security.cors-any-origin-credentials

CORS allows any origin together with credentials, so any website can make authenticated requests and read the responses.

Last updated:

Suite: Security

kotlin

CORS allows any origin together with credentials, so any website can make authenticated requests and read the responses.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

List the trusted origins explicitly when allowCredentials = true is needed.

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.