CVE-2020-28482 – fastify-csrf
Package
Manager: npm
Name: fastify-csrf
Vulnerable Version: >=0 <3.0.0
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.00307 pctl0.53385
Details
Cross-site Request Forgery in fastify-csrf 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
Metadata
Created: 2021-01-20T21:30:34Z
Modified: 2022-06-29T21:54:32Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/01/GHSA-49wp-qq6x-g2rf/GHSA-49wp-qq6x-g2rf.json
CWE IDs: ["CWE-352"]
Alternative ID: GHSA-49wp-qq6x-g2rf
Finding: F007
Auto approve: 1