What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: fastify-csrf 3.0.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2020-28482 or the next vulnerability affects your stack