CVE-2024-49770
JavaScript vulnerability analysis and mitigation

Overview

CVE-2024-49770 affects oak, a middleware framework for Deno's native HTTP server, Deno Deploy, Node.js 16.5 and later, Cloudflare Workers and Bun. The vulnerability was discovered and disclosed on November 1, 2024. By default, oak does not allow transferring of hidden files with Context.send API, however, prior to version 17.1.3, this protection could be bypassed by encoding / as its URL encoded form %2F (GitHub Advisory).

Technical details

The vulnerability stems from two key issues: First, oak uses decodeComponent which behaves unexpectedly, making it impossible to access files containing URL encoded characters unless the client URL encodes it first. Second, the isHidden function is flawed as it only checks if the first subpath is hidden, allowing access to secrets in subdirectories like subdir/.env. The vulnerability has been assigned a CVSS v4.0 score of 7.7 (HIGH) with the 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 (NVD).

Impact

The vulnerability allows attackers to potentially read sensitive user data or gain access to server secrets within the served root directory. An attacker can bypass the hidden file transfer restriction and access sensitive files like .env or .git/config files that are normally protected (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in oak version 17.1.3. Users are advised to upgrade to this version or later to address the security issue. The fix involves properly decoding paths to prevent bypassing security checks (Oak Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management