CVE-2020-28482
HIGH8.8EPSS 0.31%Cross-site Request Forgery in fastify-csrf
發布日:2021/1/20修改日:2026/3/13
描述
The package fastify-csrf before 3.0.0 has a set of issues that affect its ability to do CSRF protection. 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
受影響套件(1)
- npm/fastify-csrffrom 0, < 3.0.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
參考連結(6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2020-28482
- PATCHhttps://github.com/fastify/fastify-csrf
- WEBhttps://github.com/fastify/fastify-csrf/commit/3c9de36e9e73ce0eda9207f84f2ac0243e1f5253
- WEBhttps://github.com/fastify/fastify-csrf/pull/26
- WEBhttps://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044
- WEBhttps://www.npmjs.com/package/fastify-csrf