{"schemaVersion":3,"id":"CVE-2020-28482","aliases":["GHSA-49wp-qq6x-g2rf","SNYK-JS-FASTIFYCSRF-1062044"],"status":"published","duplicateOf":null,"title":null,"description":"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","dates":{"published":"2021-01-19T14:50:18.191Z","modified":"2024-09-16T19:05:34.497Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00992,"percentile":0.62001,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.012000000000000031,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0098},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00992,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00992,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00992,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00992,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00992,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00992,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00992,"percentile":0.62001}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0098,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00992,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00992,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00992,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00992,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00992,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00992,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00992,"percentile":0.62001}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource","description":"The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/732.html"}],"affected":[{"vendor":"fastify","product":"fastify-csrf","name":"fastify-csrf","label":"fastify-csrf","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.0","eol":null,"hubHref":"/vendor/fastify/fastify-csrf"},{"vendor":"Npm","product":"fastify-csrf","name":"fastify-csrf","label":"fastify-csrf","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/fastify-csrf","purlType":"npm","versions":[{"text":"< 3.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.0","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044","label":"snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044","hostname":"snyk.io","tags":["X Refsource MISC","WEB","Third Party Advisory"]},{"url":"https://github.com/fastify/fastify-csrf/pull/26","label":"github.com/fastify/fastify-csrf/pull/26","hostname":"github.com","tags":["X Refsource MISC","WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-28482","label":"nvd.nist.gov/vuln/detail/CVE-2020-28482","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/fastify/fastify-csrf/commit/3c9de36e9e73ce0eda9207f84f2ac0243e1f5253","label":"github.com/fastify/fastify-csrf/commit/3c9de36e9e73ce0eda9207f84f2ac0243e1f5253","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/fastify/fastify-csrf","label":"github.com/fastify/fastify-csrf","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://www.npmjs.com/package/fastify-csrf","label":"www.npmjs.com/package/fastify-csrf","hostname":"www.npmjs.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-01-19T14:50:18.191Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T19:05:34.497Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:04:56.660Z","stale":false,"partial":false}}