The vulnerability, GHSA-x428-ghpx-8j92, in @fastify/static allows for a route guard bypass using percent-encoded path separators. An analysis of the patch correcting this issue, specifically commit cc7b7f7e00a5f028599ba17392b831afd0c651aa, reveals the root cause. The flaw was in the wildcard route handler within the fastifyStatic function in index.js. The vulnerable code used req.params['*'] to determine the file path. This string, containing the encoded characters, was passed to the send library which then decoded it, turning %2F into /. This allowed access to files that should have been protected. The fix involves using the raw URL (req.raw.url) and a new parsing function (getPathnameForSend) to safely construct the path, preventing the unintended decoding of path separators and ensuring such requests are properly rejected.