The package fastify-csrf before 3.0.0 has a set of issues that affect its ability to do CSRF protection.
1. The generated cookie used insecure defaults, and did not have the httpOnly flag on: cookieOpts: { path: '/', sameSite: true }
2. The CSRF token was available in the GET query parameter
{
"github_reviewed": true,
"github_reviewed_at": "2021-01-20T19:49:01Z",
"cwe_ids": [
"CWE-352"
],
"severity": "HIGH",
"nvd_published_at": "2021-01-19T15:15:00Z"
}