原始 OSV JSON
{
"id": "GHSA-49wp-qq6x-g2rf",
"aliases": [
"CVE-2020-28482"
],
"details": "The package fastify-csrf before 3.0.0 has a set of issues that affect its ability to do CSRF protection.\n1. The generated cookie used insecure defaults, and did not have the httpOnly flag on: `cookieOpts: { path: '/', sameSite: true }`\n2. The CSRF token was available in the GET query parameter",
"summary": "Cross-site Request Forgery in fastify-csrf",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.0.0"
}
]
}
],
"package": {
"name": "fastify-csrf",
"ecosystem": "npm"
}
}
],
"modified": "2022-06-29T21:54:32Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"published": "2021-01-20T21:30:34Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-28482",
"type": "ADVISORY"
},
{
"url": "https://github.com/fastify/fastify-csrf/pull/26",
"type": "WEB"
},
{
"url": "https://github.com/fastify/fastify-csrf/commit/3c9de36e9e73ce0eda9207f84f2ac0243e1f5253",
"type": "WEB"
},
{
"url": "https://github.com/fastify/fastify-csrf",
"type": "PACKAGE"
},
{
"url": "https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044",
"type": "WEB"
},
{
"url": "https://www.npmjs.com/package/fastify-csrf",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-01-19T15:15:00Z",
"github_reviewed_at": "2021-01-20T19:49:01Z"
}
}