medium6.9
CVE-2025-66415
fastify-reply-from affected by bypass of reply forwarding
Impact
### 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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @fastify/reply-from | <= 12.4.0 | 12.5.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Fastify | Reply-From | through 12.4.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/fastify/fastify-reply-from/commit/4d9795cd5b57a36756d37b7f036eae369f69fa66
- https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-2q7r-29rg-6m5h
- https://github.com/advisories/GHSA-2q7r-29rg-6m5h
- https://nvd.nist.gov/vuln/detail/CVE-2025-66415