{"id":"CVE-2020-28482","published":"2021-01-19T14:50:18Z","modified":"2024-09-16T19:05:34Z","title":"Cross-site Request Forgery (CSRF)","vendor":null,"product":null,"tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00992,"percentile":0.63405,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044","tags":["x_refsource_MISC"]},{"url":"https://github.com/fastify/fastify-csrf/pull/26","tags":["x_refsource_MISC"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":12.68},{"name":"CVSS severity","points":4.13}]},"affectedVersions":[{"vendor":"n/a","product":"fastify-csrf","versions":[">= unspecified, < 3.0.0"]}],"affected":[{"ecosystem":"npm","package":"fastify-csrf","vulnerableRanges":["<3.0.0"],"patched":["3.0.0"],"from":["GHSA-49wp-qq6x-g2rf"],"provenance":"source"}],"summary":{"text":"The vulnerability is a Cross-site Request Forgery flaw in the fastify-csrf package before version 3.0.0, where the generated CSRF cookie was created with insecure defaults (no httpOnly flag) and the CSRF token was exposed in a GET query parameter. An attacker can forge cross-site requests that bypass CSRF protection by abusing these weaknesses, which requires a network-reachable target, no authentication, and user interaction such as a victim visiting a malicious page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:13:39Z"},"euvd":{"id":"EUVD-2021-0487","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-28482","published":"2021-01-19","fixed":"3.0.0","kev":false},{"cve":"CVE-2021-29624","published":"2021-05-19","fixed":"3.1.0","kev":false,"link":{"from":"CVE-2020-28482","to":"CVE-2021-29624","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fastify-csrf","fromFixed":"3.0.0","toFixed":"3.1.0","daysApart":120}]}}],"package":"npm:fastify-csrf"}}