Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2023-27495
fastify csrf-protection

Score6.5 Medium
CVSS 3.1
Exploit probability (EPSS)0.39%
within the next 30 days
CategoryRequest forgery (CSRF / SSRF)
Published20 April 2023
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, without logging in, if a user clicks a link, opens a file or similar.

A successful attack has high impact: modifying data.

Weakness type: Cross-site request forgery (CSRF).

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official description

@fastify/csrf-protection is a plugin which helps protect Fastify servers against CSRF attacks. The CSRF protection enforced by the @fastify/csrf-protection library in combination with @fastify/cookie can be bypassed from network and same-site attackers under certain conditions. @fastify/csrf-protection supports an optional userInfo parameter that binds the CSRF token to the user. This parameter has been introduced to prevent cookie-tossing attacks as a fix for CVE-2021-29624. Whenever userInfo parameter is missing, or its value can be predicted for the target user account, network and same-site attackers can 1. fixate a _csrf cookie in the victim's browser, and 2. forge CSRF tokens that are valid for the victim's session. This allows attackers to bypass the CSRF protection mechanism. As a fix, @fastify/csrf-protection starting from version 6.3.0 (and v4.1.0) includes a server-defined secret hmacKey that cryptographically binds the CSRF token to the value of the _csrf cookie and the userInfo parameter, making tokens non-spoofable by attackers. This protection is effective as long as the userInfo parameter is unique for each user. This is patched in versions 6.3.0 and v4.1.0. Users are advised to upgrade. Users unable to upgrade may use a random, non-predictable userInfo parameter for each user as a mitigation.

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

Weakness: CWE-352 – Cross-site request forgery (CSRF)

Affected products

VendorProductVersions
fastifycsrf-protection<4.1.0
fastifycsrf-protection>=5.0.0 <6.3.0

Sources

Latest in the same category

  • CVE-2026-139999 Medium 6
    React Router is a router for React. From 7.12.0 until 7.18.3 and 8.3.1, React Router's server-side origin validation may allow cross-site request forgery in Framework, unstable RSC Data, and unstable RSC Framework…
    Request forgery (CSRF / SSRF) · 30 November 2026
  • CVE-2026-139997 Medium 5.3
    React Router is a router for React. From 6.4.0 until 7.18.3 and 8.3.1, react Router loader responses and action responses can accept an attacker-controlled redirect destination without consistently rejecting an…
    Request forgery (CSRF / SSRF) · 30 November 2026
  • CVE-2026-93329 High 8.7
    A Confused Deputy and Server-Side Request Forgery (SSRF) vulnerability in the /api-proxy endpoint in Google Cloud Gemini Enterprise Agent Platform — Agent Studio App Builder versions prior to 2026-09-02 on Cloud Run…
    Request forgery (CSRF / SSRF) · 30 November 2026
  • CVE-2026-5202 Medium 6.7
    LibreOffice documents can link to external content, such as images, objects, sounds and database data, and ask the user before updating those links. Some of this content was loaded while the document was opening,…
    Request forgery (CSRF / SSRF) · 30 November 2026
  • CVE-2026-66024 High 8.3
    Chatwoot before 4.17.0 contains a server-side request forgery vulnerability that allows unauthenticated attackers to make the server issue HTTP requests to arbitrary hosts by exploiting missing Twilio request signature…
    Request forgery (CSRF / SSRF) · 30 November 2026
  • CVE-2026-137189 Critical 9.3
    Jupyter MCP Server is a Model Context Protocol server for Jupyter. Prior to 2.1.3, ManagementRouteSecurityMiddleware in jupyter_mcp_server/server.py checks request.url.hostname rather than the actual TCP peer before…
    Request forgery (CSRF / SSRF) · 30 November 2026