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

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.71%, higher than 54% of CVEs (2026-12-01)
- Published: 2024-11-01T16:16:29.482Z
- Modified: 2026-06-17T08:00:25.007Z
- Also known as: GHSA-qm92-93fv-vh7m
- Weaknesses: CWE-22, CWE-35
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- oakserver oak: < 17.1.3; before 17.1.3
- @oakserver/oak (npm): up to 14.1.0

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/oakserver/oak/security/advisories/GHSA-qm92-93fv-vh7m> (web)
- <https://github.com/oakserver/oak/commit/4b2f27efd5cba5a45b2c3982e610da3af0869209> (web)
- <https://github.com/oakserver/oak/blob/3896fe568b25ac0b4c5afbf822ff8344c3d1712a/send.ts#L117-L125> (web)
- <https://github.com/oakserver/oak/blob/3896fe568b25ac0b4c5afbf822ff8344c3d1712a/send.ts#L182C10-L182C25> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-49770> (advisory)
- <https://github.com/oakserver/oak> (package)

## Sources

- CVE List: [CVE-2024-49770](https://www.cve.org/CVERecord?id=CVE-2024-49770), CVE Terms of Use, modified 2024-11-01
- GitHub Advisory Database: [GHSA-qm92-93fv-vh7m](https://github.com/advisories/GHSA-qm92-93fv-vh7m), CC-BY-4.0, modified 2024-11-01
- NVD: [CVE-2024-49770](https://nvd.nist.gov/vuln/detail/CVE-2024-49770), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-49770 · Whole record: https://cve.day/CVE-2024-49770.json · Rebuilt by cve.day 2026-11-25T22:58:47.632Z
