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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- 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.75%, higher than 51% of CVEs (2026-11-30)
- Published: 2024-05-14T14:32:06.577Z
- Modified: 2026-09-10T03:50:13.312Z
- Also known as: GHSA-5h5v-hw44-f6gg
- Weaknesses: CWE-22, CWE-23
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Oceanic is a NodeJS library for interfacing with Discord. Prior to version 1.10.4, 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. Version 1.10.4 fixes this issue. Some workarounds are available. One may sanitize user input, ensuring strings are valid for the purpose they are being used for. One may also encode input with `encodeURIComponent` before providing it to the library.

(As written by CVE List.)

## Affected

- OceanicJS Oceanic: < 1.10.4
- oceanic.js (npm): before 1.10.4

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/OceanicJS/Oceanic/security/advisories/GHSA-5h5v-hw44-f6gg> (web)
- <https://github.com/OceanicJS/Oceanic/commit/8bf8ee8373b8c565fbdbf70a609aba4fbc1a1ffe> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34712> (advisory)
- <https://github.com/OceanicJS/Oceanic> (package)

## Sources

- CVE List: [CVE-2024-34712](https://www.cve.org/CVERecord?id=CVE-2024-34712), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-5h5v-hw44-f6gg](https://github.com/advisories/GHSA-5h5v-hw44-f6gg), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-34712](https://nvd.nist.gov/vuln/detail/CVE-2024-34712), Public domain, modified 2026-06-17

---

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