7.5
CWE
444
Advisory Published
Advisory Published
Updated

CVE-2023-51701: @fastify-reply-from JSON Content-Type parsing confusion

First published: Mon Jan 08 2024(Updated: )

### Impact The main repo of fastify use [fast-content-type-parse](https://github.com/fastify/fast-content-type-parse) to parse request Content-Type, which will [trim after split](https://github.com/fastify/fast-content-type-parse/blob/2776d054dd48e9ce40b8d5e5ff9b46fee82b95f1/index.js#L59). The [fastify-reply-from](https://github.com/fastify/fastify-reply-from/blob/b79a22d6eb9a0b52cfbe8eb2cb22ad65f5a39e64/index.js#L118C14-L118C14) have not use this repo to unify the parse of Content-Type, which [won't trim](https://github.com/fastify/fastify-reply-from/blob/b79a22d6eb9a0b52cfbe8eb2cb22ad65f5a39e64/index.js#L118C14-L118C14). As a result, a reverse proxy server built with `@fastify/reply-from` could misinterpret the incoming body by passing an header `ContentType: application/json ; charset=utf-8`. This can lead to bypass of security checks. ### Patches `@fastify/reply-from` v9.6.0 include the fix. ### Workarounds There are no known workarounds. ### References Hackerone Report: https://hackerone.com/reports/2295770.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
npm/@fastify/reply-from<9.6.0
9.6.0
Fastify Reply-from<9.6.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2023-51701?

    CVE-2023-51701 is classified as a moderate severity vulnerability.

  • How do I fix CVE-2023-51701?

    To fix CVE-2023-51701, upgrade the @fastify/reply-from package to version 9.6.0 or later.

  • What is the impact of CVE-2023-51701?

    The impact of CVE-2023-51701 involves issues with parsing the Content-Type of requests which can lead to unexpected behavior.

  • Which versions are affected by CVE-2023-51701?

    Versions of @fastify/reply-from prior to 9.6.0 are affected by CVE-2023-51701.

  • Is CVE-2023-51701 related to the fastify framework?

    Yes, CVE-2023-51701 is related to the fastify framework, specifically its use of the fast-content-type-parse module.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203