5.3medium
@fastify-reply-from JSON Content-Type parsing confusion
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.48% (higher than 42% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-v2v2-hph8-q5xp
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| fastify fastify-reply-from | < 9.6.0 | CVE List |
| @fastify/reply-from (npm) | before 9.6.0 | GitHub Advisory Database |
| fastify reply-from | before 9.6.0 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
fastify-reply-from es un complemento de Fastify para reenviar la solicitud HTTP actual a otro servidor. Un servidor proxy inverso creado con `@fastify/reply-from` podría malinterpretar el cuerpo entrante al pasar un encabezado `ContentType: application/json; charset=utf-8`. Esto puede provocar que se eludan los controles de seguridad. Esta vulnerabilidad ha sido parcheada en '@fastify/reply-from` versión 9.6.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-51701 changed 2025-06-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v2v2-hph8-q5xp changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-51701 changed 2026-06-17 | Public domain |