CVE-2024-49770
published high CVSS 4.0 · 7.7oak's path traversal allows transfer of hidden files within the served root directory
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| oakserver | oak | < 17.1.3 (affected) | GitHub_M · cna |
| oakserver | oak | 0 to < 17.1.3 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
2- CWE-35 CWE-35: Path Traversal: '.../...//'
- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
4- https://github.com/oakserver/oak/blob/3896fe568b25ac0b4c5afbf822ff8344c3d1712a/send.ts#L117-L125
- https://github.com/oakserver/oak/blob/3896fe568b25ac0b4c5afbf822ff8344c3d1712a/send.ts#L182C10-L182C25
- https://github.com/oakserver/oak/commit/4b2f27efd5cba5a45b2c3982e610da3af0869209
- https://github.com/oakserver/oak/security/advisories/GHSA-qm92-93fv-vh7m
Provider assertions
2GitHub_M · cna
oak's path traversal allows transfer of hidden files within the served root directory
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3b79739f243cd4ae4db66c7b5bd64f03b97593c3f6a213a23888acc687c2a899
- Ingested
- 23 Sep 2026, 08:29:06 UTC
- Source record
- Official CVE record