{"id":"CVE-2023-51701","aliases":["CVE-2023-51701","GHSA-v2v2-hph8-q5xp"],"related":[],"kind":"vulnerability","state":"published","title":"@fastify-reply-from JSON Content-Type parsing confusion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe 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).\n\nThe [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).\n\nAs 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.\n\n### Patches\n\n`@fastify/reply-from` v9.6.0 include the fix. \n\n### Workarounds\n\nThere are no known workarounds.\n\n### References\n\nHackerone Report: https://hackerone.com/reports/2295770.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-01-08T13:55:05.071Z","modified":"2026-09-10T03:50:05.129Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-444"],"affected":[{"ranges":[{"version":"< 9.6.0","status":"affected"}],"vendor":"fastify","product":"fastify-reply-from","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"9.6.0"}],"ecosystem":"npm","package":"@fastify/reply-from","purl":"pkg:npm/%40fastify/reply-from","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"9.6.0"}],"vendor":"fastify","product":"reply-from","cpe":"cpe:2.3:a:fastify:reply-from:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-v2v2-hph8-q5xp","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/fastify/fastify-reply-from/releases/tag/v9.6.0","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-51701","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fastify-reply-from/commit/cbd7c17c09e6476268e34f5e499a6b923e8acc18","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fastify-reply-from","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-05-08T15:43:47.541Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-51701","url":"https://www.cve.org/CVERecord?id=CVE-2023-51701","licence":"CVE Terms of Use","modified":"2025-06-03T14:37:39.150Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v2v2-hph8-q5xp","url":"https://github.com/advisories/GHSA-v2v2-hph8-q5xp","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:05.129Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-51701","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-51701","licence":"Public domain","modified":"2026-06-17T06:41:29.967Z"}],"updatedAt":"2026-11-25T22:58:31.926Z","epss":{"score":0.00479,"percentile":0.42957,"date":"2026-12-01T12:00:22.000Z"}}