Directory Traversal Vulnerability in Fastify Plugin by Fastify
CVE-2026-130886
8.2HIGH
What is CVE-2026-130886?
The @fastify/reply-from plugin contains a directory traversal vulnerability that allows an unauthenticated client to access files outside the configured prefix. This occurs when the plugin's buildURL function mistakenly allows encoded parent-directory traversals due to a bypass in the check for source strings with special schemes like http or https. As a result, requests can escape intended resource restrictions. To mitigate this risk, users should upgrade to @fastify/reply-from version 12.8.4 or later, where this issue has been resolved.
Affected Version(s)
@fastify/reply-from 12.8.1 < 12.8.4
@fastify/reply-from 12.8.4
