Skip to content
OpenAdvisories
High · 7.7 CVE-2024-49770 EUVD-2024-3301GHSA-qm92-93fv-vh7m

oak's path traversal allows transfer of hidden files within the served root directory

Published Nov 1, 2024 · Updated Nov 1, 2024 · Assigned by GitHub_M

Description

`oak` is a middleware framework for Deno's native HTTP server, Deno Deploy, Node.js 16.5 and later, Cloudflare Workers and Bun. By default `oak` does not allow transferring of hidden files with `Context.send` API. However, prior to version 17.1.3, this can be bypassed by encoding `/` as its URL encoded form `%2F`. For an attacker this has potential to read sensitive user data or to gain access to server secrets. Version 17.1.3 fixes the issue.

Affected products

VendorProductAffectedFixed
oakserver oak < 17.1.3 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @oakserver/oak <= 14.1.0 — GHSA-qm92-93fv-vh7m

References