Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. oceanic.js
  4. ›
  5. CVE-2024-34712

CVE-2024-34712: Oceanic allows unsanitized user input to lead to path traversal in URLs

May 14, 2024

Input to functions such as Client.rest.channels.removeBan is not url-encoded, resulting in specially crafted input such as ../../../channels/{id} being normalized into the url /api/v10/channels/{id}, and deleting a channel rather than removing a ban.

References

  • github.com/OceanicJS/Oceanic
  • github.com/OceanicJS/Oceanic/commit/8bf8ee8373b8c565fbdbf70a609aba4fbc1a1ffe
  • github.com/OceanicJS/Oceanic/security/advisories/GHSA-5h5v-hw44-f6gg
  • github.com/advisories/GHSA-5h5v-hw44-f6gg
  • nvd.nist.gov/vuln/detail/CVE-2024-34712

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.10.4

Fixed versions

  • 1.10.4

Solution

Upgrade to version 1.10.4 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-23: Relative Path Traversal

Source file

npm/oceanic.js/CVE-2024-34712.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:17 +0000.