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 package | Versions | Reported by |
|---|---|---|
| fastify fastify-reply-from | < 12.5.0 | CVE List |
| @fastify/reply-from (npm) | before 12.5.0 | GitHub Advisory Database |
| fastify reply-from | up to 12.4.0 | NVD |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-66415 changed 2025-12-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2q7r-29rg-6m5h changed 2025-12-02 | CC-BY-4.0 |
| NVD | CVE-2025-66415 changed 2026-10-18 | Public domain |