Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @oakserver/oak
  4. ›
  5. CVE-2024-49770

CVE-2024-49770: Path traversal in oak allows transfer of hidden files within the served root directory

November 1, 2024

By default oak does not allow transferring of hidden files with Context.send API. However, this can be bypassed by encoding / as its URL encoded form %2F.

References

  • github.com/advisories/GHSA-qm92-93fv-vh7m
  • github.com/oakserver/oak
  • github.com/oakserver/oak/blob/3896fe568b25ac0b4c5afbf822ff8344c3d1712a/send.ts
  • github.com/oakserver/oak/blob/3896fe568b25ac0b4c5afbf822ff8344c3d1712a/send.ts
  • github.com/oakserver/oak/commit/4b2f27efd5cba5a45b2c3982e610da3af0869209
  • github.com/oakserver/oak/security/advisories/GHSA-qm92-93fv-vh7m
  • nvd.nist.gov/vuln/detail/CVE-2024-49770

Code Behaviors & Features

Detect and mitigate CVE-2024-49770 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 14.1.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-35: Path Traversal: '.../...//'

Source file

npm/@oakserver/oak/CVE-2024-49770.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:37 +0000.