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

Published Jan 8, 2024
·
Updated

Impact

The main repo of fastify use fast-content-type-parse to parse request Content-Type, which will trim after split.

The fastify-reply-from have not use this repo to unify the parse of Content-Type, which won't trim.

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.

Other sources

fastify-reply-from is a Fastify plugin to forward the current HTTP request to another server. 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. This vulnerability has been patched in '@fastify/reply-from version 9.6.0.

NVD

Affected Software

2 affected componentsFixes available
npm/@fastify/reply-from<9.6.0
9.6.0
fastify Reply-from Node.js<9.6.0

Event History

Jan 8, 2024
CVE Published
via MITRE·01:55 PM
Data Sourced
via MITRE·01:55 PM
DescriptionSeverityWeakness
Advisory Published
03:22 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-51701?

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

2

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.

3

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.

4

Which versions are affected by CVE-2023-51701?

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

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203