CWE-35225 advisories

Cross-Site Request Forgery (CSRF)

What it is

A site accepts state-changing requests without proving they came from its own UI, so another site can forge them.

How to fix it

Upgrade and enable anti-CSRF tokens; set SameSite=Lax/Strict on session cookies.

How to avoid it

Require an unpredictable per-request token on every state-changing endpoint.

Known Cross-Site Request Forgery (CSRF) vulnerabilities

Stateward flags Cross-Site Request Forgery (CSRF) in your own code and dependencies on every pull request.

Scan my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.