CVE-2025-66415
JSON

6.9medium

fastify-reply-from bypass of reply forwarding

Severity
6.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.19% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-2q7r-29rg-6m5h

Description

fastify-reply-from is a Fastify plugin to forward the current HTTP request to another server. Prior to 12.5.0, by crafting a malicious URL, an attacker could access routes that are not allowed, even though the reply.from is defined for specific routes in @fastify/reply-from. This vulnerability is fixed in 12.5.0.

Affected

Product or packageVersionsReported by
fastify fastify-reply-from< 12.5.0CVE List
@fastify/reply-from (npm)before 12.5.0GitHub Advisory Database
fastify reply-fromup to 12.4.0NVD

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Classification

CWE-441

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

What each source says

CVE List

fastify-reply-from is a Fastify plugin to forward the current HTTP request to another server. Prior to 12.5.0, by crafting a malicious URL, an attacker could access routes that are not allowed, even though the reply.from is defined for specific routes in @fastify/reply-from. This vulnerability is fixed in 12.5.0.

GitHub Advisory Database
Summary

By crafting a malicious URL, an attacker could access routes that are not allowed, even though the reply.from is defined for specific routes in @fastify/reply-from.

Details

An attacker can bypass the route defined by the @fastify/reply-from package by adding a .. symbol, which, for curl version 8.7.1, is %2e%2e.

Impact

Everyone is using this package with the routes option to protect a 3rd-party resource.

NVD (es)

fastify-reply-from es un plugin de Fastify para reenviar la solicitud HTTP actual a otro servidor. Versiones anteriores a 12.5.0, al elaborar una URL maliciosa, un atacante podría acceder a rutas no permitidas, incluso si el reply.from está definido para rutas específicas en @fastify/reply-from. Esta vulnerabilidad está corregida en 12.5.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-66415 changed 2025-12-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-2q7r-29rg-6m5h changed 2025-12-02CC-BY-4.0
NVDCVE-2025-66415 changed 2026-10-18Public domain