CVE-2020-28482
Cross-site Request Forgery in fastify-csrf
8.8
HIGH
CVSS 3.1
EPSS 0.31%
Description
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
How to fix CVE-2020-28482
To remediate CVE-2020-28482, upgrade the affected package to a fixed version below.
- —upgrade to 3.0.0 or later
Is CVE-2020-28482 being exploited?
Low — EPSS is 0.3%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 3.0.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| 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 |