Skip to content
vetkitChecksChangelogDocumentation

vetkit.java.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

java

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/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.