Skip to content

CVE-2024-49770 oak's path traversal allows transfer of hidden files within the served root directory

HighCVSS 7.7 EPSS 0.71%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
oakserver @oakserver/oak < 17.1.3; = < 17.1.3 17.1.3 Fixed
oakserver @oakserver/oak(npm) <= 14.1.0 after 14.1.0 Fixed

Affected products

ProductAffected versionsFixed in
oakserver @oakserver/oak(npm) <= 14.1.0 No fix listed
oakserver @oakserver/oak = < 17.1.3 No fix listed
oakserver @oakserver/oak < 17.1.3 17.1.3

References