CVE-2026-107318

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

Published Oct 8, 2026 CVSS 3.1 · 7.4 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
First Time appeared Fastify
Fastify fastify/reply-from
Vendors & Products Fastify
Fastify fastify/reply-from
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-295

    Improper Certificate Validation

Sources

Status
PUBLISHED
Assigner
openjs
Published
Updated
Oct 9, 2026, 11:50 AM
Reserved
Oct 7, 2026, 5:27 PM
Status
Deferred
Published
Oct 8, 2026, 9:17 PM
Modified
Oct 9, 2026, 12:17 PM