{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "3.0.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "bac8c852403ab66965d4e66c0d07324873960c26"
            }
          ],
          "repo": "https://github.com/fastify/fastify-csrf",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "This affects the package fastify-csrf before 3.0.0. 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",
  "id": "CVE-2020-28482",
  "modified": "2026-03-15T13:49:28.755598978Z",
  "published": "2021-01-19T15:15:12.153Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/fastify/fastify-csrf/pull/26"
    },
    {
      "type": "ADVISORY",
      "url": "https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044"
    }
  ],
  "related": [
    "SNYK-JS-FASTIFYCSRF-1062044"
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}