CVE-2026-107318

@fastify/reply-from vulnerable to improper certificate validation in built-in HTTPS transports

State
Published
Severity
7.4 High
Published
Oct 8, 2026
Updated
Oct 9, 2026
Reserved
Oct 7, 2026

Read the record on cve.org

Description

@fastify/reply-from is a Fastify plugin that forwards requests to an upstream HTTP or HTTPS server. In versions prior to 12.7.0, all of the built-in HTTPS transports override the secure default and set rejectUnauthorized to false, so the proxy does not verify the TLS certificate of the upstream even when the application points it at an https upstream in the default configuration. An on-path network attacker can therefore impersonate the configured HTTPS upstream, read the credentials and request bodies the proxy forwards, and return forged responses that the application trusts. The issue is fixed in @fastify/reply-from 12.7.0, and users should upgrade to 12.7.0 or later. As a workaround, pass an explicit rejectUnauthorized true on the transport, supply an already configured undici instance, or use the undici global agent.

Scores

CVSSScoreVectorSource
3.17.4 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:Nopenjs

Weaknesses

  • CWE-295 Improper Certificate Validation

Affected Products

ProductVersions
@fastify/reply-from@fastify/reply-from
  • before 12.7.0Affected
  • 12.7.0Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.