Relative Path Traversal Affecting oceanic.js package, versions <1.10.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.56% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Relative Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-OCEANICJS-6846187
  • published15 May 2024
  • disclosed14 May 2024
  • creditVendicated

Introduced: 14 May 2024

CVE-2024-34712  (opens in a new tab)
CWE-23  (opens in a new tab)

How to fix?

Upgrade oceanic.js to version 1.10.4 or higher.

Overview

oceanic.js is an A NodeJS library for interfacing with Discord.

Affected versions of this package are vulnerable to Relative Path Traversal due to improper sanitization in the Client.rest.channels.removeBan function. An attacker can manipulate URLs and perform unauthorized actions by injecting specially crafted input.

References

CVSS Base Scores

version 3.1