CVE-2026-107318
JSON

7.4high

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

Severity
7.4high CVSS:3.1 by openjs
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
openjs

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.

Affected

Product or packageVersionsReported by
@fastify/reply-from @fastify/reply-frombefore 12.7.0
Not affected: 12.7.0
CVE List

Classification

CWE-295

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-107318 changed 2026-10-09CVE Terms of Use
NVDCVE-2026-107318 changed 2026-10-09Public domain