PT-2024-14252 · Fastify · @Fastify/Reply-From

Qwerty472123

·

Published

2024-01-08

·

Updated

2024-01-12

·

CVE-2023-51701

CVSS v3.1

5.3

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions @fastify/reply-from versions prior to 9.6.0
Description The issue arises when a reverse proxy server built with @fastify/reply-from misinterprets the incoming body by passing a header ContentType: application/json ; charset=utf-8, potentially leading to the bypass of security checks. This occurs because @fastify/reply-from does not unify the parsing of Content-Type with the main Fastify repository, which uses fast-content-type-parse to trim after splitting. As a result, the lack of trimming in @fastify/reply-from can cause misinterpretation.
Recommendations For versions prior to 9.6.0, update to version 9.6.0 or later to resolve the issue. As a temporary workaround, consider restricting the use of the @fastify/reply-from plugin until the update can be applied. Additionally, avoid using the ContentType header with the application/json ; charset=utf-8 value in the affected API endpoints until the issue is resolved.

Exploit

Fix

HTTP Request/Response Smuggling

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2023-51701
GHSA-V2V2-HPH8-Q5XP

Affected Products

@Fastify/Reply-From