vetkit.js.cors.reflected-origin-credentials
CORS reflects any request Origin while allowing credentials. Any website can make authenticated requests as the visiting user and read the responses.
Last updated:
Suite: Security
javascript, typescript
CORS reflects any request Origin while allowing credentials. Any website can make authenticated requests as the visiting user and read the responses.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Allow only an explicit list of trusted origins (e.g. origin: ['https://app.example.com']) when credentials is enabled, and compare the Origin header against that list before echoing it.
References
Source: packages/engine/rules/sast/javascript.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.