Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS12MnYyLWhwaDgtcTV4cM4AA4PH

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

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.

Permalink: https://github.com/advisories/GHSA-v2v2-hph8-q5xp
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS12MnYyLWhwaDgtcTV4cM4AA4PH
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 11 months ago
Updated: 11 months ago


CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Identifiers: GHSA-v2v2-hph8-q5xp, CVE-2023-51701
References: Repository: https://github.com/fastify/fastify-reply-from
Blast Radius: 13.6

Affected Packages

npm:@fastify/reply-from
Dependent packages: 9
Dependent repositories: 375
Downloads: 538,841 last month
Affected Version Ranges: < 9.6.0
Fixed in: 9.6.0
All affected versions: 7.0.0, 7.0.1, 8.0.0, 8.1.0, 8.2.0, 8.2.1, 8.3.0, 8.3.1, 8.4.0, 8.4.1, 8.4.2, 8.4.3, 9.0.0, 9.0.1, 9.0.2, 9.1.0, 9.2.0, 9.3.0, 9.4.0, 9.5.0
All unaffected versions: 9.6.0, 9.7.0, 9.8.0, 10.0.0, 11.0.0, 11.0.1, 11.0.2, 12.0.0