Intel

AIKIDO-2024-10271

@fastify/send is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS)CVE-2024-43799 Published Sep 16, 2024

45

Medium Risk

This Affects:

js@fastify/send
3.0.0 - 3.1.0
Fixed in 3.1.1
Are you affected? Scan for Free

TL;DR

Affected versions of the package are vulnerable to Cross-site Scripting (XSS) via the redirect function due to improper user input sanitization. This vulnerability originates in the send library, which fails to properly sanitize user input before using it in redirects, allowing attackers to inject malicious scripts.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@fastify/send is vulnerable to Cross-site Scripting (XSS) in versions 3.0.0 - 3.1.0.

How to fix this

Upgrade the send library to the patch version.