Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · net nu 125 bronnen 3 kritiek 2 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-130886

HIGH · 8.2 CVSS Gepubliceerd: CWE-22

Beschrijving NL

@fastify/reply-from is een Fastify-plugin die verzoeken doorstuurt naar een upstream HTTP-server. In de versies 12.8.1 tot en met 12.8.3 controleerde de buildURL-functie de door de aanvaller opgegeven bronstring op segmenten van de bovenliggende map, maar wanneer de bron begint met hetzelfde speciale schema als de basis, zoals http of https, laat de WHATWG-URL-parser het schema vallen en interpreteert hij de rest als een relatief pad. Een payload die het schema aan een procentueel gecodeerde reeks van bovenliggende mappen koppelt, doorstaat daarom de controle, omdat het geïnspecteerde segment wordt gelezen als het schema plus de punten in plaats van een enkel token voor een bovenliggende map, terwijl de proxy de gecodeerde traversal ongewijzigd doorstuurt. Een upstream die het aanvraagpad procentueel decodeert voordat puntsegmenten worden opgelost, levert vervolgens een pad buiten het geconfigureerde voorvoegsel, zodat een niet-geverifieerde client met een bereik van een upstream-voorvoegsel, of die vertrouwt op Fastify-routebeveiligingen vóór de proxy, dat voorvoegsel kan omzeilen en sibling- of bovenliggende upstream-eindpunten kan bereiken. De per-segmentcontrole die in 12.8.1 is toegevoegd, is wat het schemaprefix omzeilt, en releases tot en met 12.8.0 hebben de gedecodeerde vorm al afgewezen. Het probleem is opgelost in @fastify/reply-from 12.8.4, en gebruikers moeten upgraden naar 12.8.4 of hoger.

Origineel (Engels) tonen

@fastify/reply-from is a Fastify plugin that forwards requests to an upstream HTTP server. In versions 12.8.1 through 12.8.3, its buildURL function checked the attacker-supplied source string for parent-directory segments, but when the source begins with the same special scheme as the base, such as http or https, the WHATWG URL parser drops the scheme and resolves the remainder as a relative path. A payload that glues the scheme to a percent-encoded parent-directory sequence therefore passes the check, because the inspected segment reads as the scheme plus the dots rather than a bare parent-directory token, while the proxy forwards the encoded traversal unchanged. An upstream that percent-decodes the request path before resolving dot-segments then serves a path outside the configured prefix, so an unauthenticated client scoped to an upstream prefix, or relying on Fastify route guards in front of the proxy, can escape that prefix and reach sibling or parent upstream endpoints. The per-segment check added in 12.8.1 is what the scheme prefix bypasses, and releases up to 12.8.0 already rejected the decoded form. The issue is fixed in @fastify/reply-from 12.8.4, and users should upgrade to 12.8.4 or later.

References