Vulnerability · Published Jan 19, 2021 · Assigned by snyk

CVE-2020-28482Cross-site Request Forgery (CSRF)

Medium 5.9

In plain English

A medium-severity security flaw in fastify-csrf. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 63% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)1.0%top 37.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

This affects the package fastify-csrf before 3.0.0. 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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmfastify-csrf3.0.0GHSA-49wp-qq6x-g2rf

Affected products (as reported)

VendorProductVersions
n/a fastify-csrf unspecified – before 3.0.0

References