{"api_version":"1","generated_at":"2026-04-23T02:35:19+00:00","cve":"CVE-2020-28482","urls":{"html":"https://cve.report/CVE-2020-28482","api":"https://cve.report/api/cve/CVE-2020-28482.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-28482","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-28482"},"summary":{"title":"CVE-2020-28482","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","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2021-01-19 15:15:00","updated_at":"2022-06-28 14:11:00"},"problem_types":["CWE-200","CWE-732"],"metrics":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044","name":"https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044","refsource":"MISC","tags":["Third Party Advisory"],"title":"Cross-site Request Forgery (CSRF) in fastify-csrf | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/fastify/fastify-csrf/pull/26","name":"https://github.com/fastify/fastify-csrf/pull/26","refsource":"MISC","tags":["Third Party Advisory"],"title":"feat: safe defaults by simoneb · Pull Request #26 · fastify/fastify-csrf · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-28482","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-28482","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Matteo Collina","lang":""}],"nvd_cpes":[{"cve_year":"2020","cve_id":"28482","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"fastify","cpe5":"fastify-csrf","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"28482","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"fastify","cpe5":"fastify-csrf","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2020-28482","qid":"982980","title":"Nodejs (npm) Security Update for fastify-csrf (GHSA-49wp-qq6x-g2rf)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2021-01-19T14:47:37.555989Z","ID":"CVE-2020-28482","STATE":"PUBLIC","TITLE":"Cross-site Request Forgery (CSRF)"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"fastify-csrf","version":{"version_data":[{"version_affected":"<","version_value":"3.0.0"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Cross-site Request Forgery (CSRF)"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044","name":"https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044"},{"refsource":"MISC","url":"https://github.com/fastify/fastify-csrf/pull/26","name":"https://github.com/fastify/fastify-csrf/pull/26"}]},"description":{"description_data":[{"lang":"eng","value":"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"}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","baseScore":5.9,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"NONE"}},"credit":[{"lang":"eng","value":"Matteo Collina"}]},"nvd":{"publishedDate":"2021-01-19 15:15:00","lastModifiedDate":"2022-06-28 14:11:00","problem_types":["CWE-200","CWE-732"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:fastify:fastify-csrf:*:*:*:*:*:node.js:*:*","versionEndExcluding":"3.0.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"28482","Ordinal":"190969","Title":"CVE-2020-28482","CVE":"CVE-2020-28482","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"28482","Ordinal":"1","NoteData":"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","Type":"Description","Title":null},{"CveYear":"2020","CveId":"28482","Ordinal":"2","NoteData":"2021-01-19","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"28482","Ordinal":"3","NoteData":"2021-01-19","Type":"Other","Title":"Modified"}]}}}