Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTQ5d3AtcXE2eC1nMnJm

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
Permalink: https://github.com/advisories/GHSA-49wp-qq6x-g2rf
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTQ5d3AtcXE2eC1nMnJm
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 3 years ago
Updated: over 1 year ago


CVSS Score: 8.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Identifiers: GHSA-49wp-qq6x-g2rf, CVE-2020-28482
References: Repository: https://github.com/fastify/fastify-csrf
Blast Radius: 16.1

Affected Packages

npm:fastify-csrf
Dependent packages: 15
Dependent repositories: 68
Downloads: 7,480 last month
Affected Version Ranges: < 3.0.0
Fixed in: 3.0.0
All affected versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 2.0.0
All unaffected versions: 3.0.0, 3.0.1, 3.1.0