Advisory

GHSA-v2v2-hph8-q5xp

Also known as: CVE-2023-51701

Summary

@fastify/reply-from JSON Content-Type parsing confusion

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-01-08 15:22 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

@fastify/reply-from

npm · All systems

Affected

  • introduced 0, fixed 9.6.0 (semver)

Fixed versions

9.6.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences