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.
Published: 2026-10-08
Score: 7.4 High
EPSS: < 1% Very Low
KEV: No
Impact: Improper TLS certificate validation leading to man‑in‑the‑middle
Action: Immediate Patch
AI Analysis

Impact

@fastify/reply-from is a Fastify plugin that forwards client requests to an upstream HTTP or HTTPS server. Prior to version 12.7.0 every built‑in HTTPS transport ignores the default secure settings and sets rejectUnauthorized to false, so the plugin never verifies the TLS certificate of the upstream server. This flaw is a classic example of CWE-295. An attacker who can position themselves on the network path between the proxy and the upstream server can impersonate the target HTTPS endpoint, capture forwarded credentials and request bodies, and inject forged responses that the application will trust.

Affected Systems

The vulnerability affects all installations of @fastify/reply-from with a version older than 12.7.0. Users of 12.7.0 or later are not impacted. The fix is explicitly available in 12.7.0, and earlier versions can be protected by adjusting the rejectUnauthorized setting or by supplying a pre‑configured undici instance or global agent.

Risk and Exploitability

The CVSS score of 7.4 indicates a high severity threat. Although the EPSS score is not reported, the vulnerability is not yet listed in CISA’s KEV catalog. The likely attack vector is a network‑based man‑in‑the‑middle that can modify traffic between the proxy and the upstream HTTPS server. Successful exploitation would allow an attacker to read and alter sensitive data, compromising confidentiality and integrity for all traffic routed through the proxy.

Generated by OpenCVE AI on October 8, 2026 at 21:20 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade @fastify/reply-from to version 12.7.0 or later
  • Configure the transport to set rejectUnauthorized to true
  • Provide a pre‑configured undici instance to override the default transport
  • Use the undici global agent as an alternative to override the default settings

Generated by OpenCVE AI on October 8, 2026 at 21:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 11 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
First Time appeared Fastify
Fastify fastify/reply-from
Vendors & Products Fastify
Fastify fastify/reply-from

Fri, 09 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 08 Oct 2026 20:45:00 +0000

Type Values Removed Values Added
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.
Title @fastify/reply-from vulnerable to improper certificate validation in built-in HTTPS transports
Weaknesses CWE-295
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

Fastify Fastify/reply-from
cve-icon MITRE

Status: PUBLISHED

Assigner: openjs

Published:

Updated: 2026-10-09T11:50:42.722Z

Reserved: 2026-10-07T17:27:41.901Z

Link: CVE-2026-107318

cve-icon Vulnrichment

Updated: 2026-10-09T11:50:37.864Z

cve-icon NVD

Status : Deferred

Published: 2026-10-08T21:17:51.807

Modified: 2026-10-09T12:17:08.147

Link: CVE-2026-107318

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-11T12:27:52Z

Weaknesses
  • CWE-295

    Improper Certificate Validation