{"cve":"CVE-2024-34712","nvd":{"published":"2024-05-14T16:17:26.600","modified":"2026-06-17T07:33:55.550","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5},"cwes":["CWE-22","CWE-23"],"references":["https://github.com/OceanicJS/Oceanic/commit/8bf8ee8373b8c565fbdbf70a609aba4fbc1a1ffe","https://github.com/OceanicJS/Oceanic/security/advisories/GHSA-5h5v-hw44-f6gg","https://github.com/OceanicJS/Oceanic/commit/8bf8ee8373b8c565fbdbf70a609aba4fbc1a1ffe","https://github.com/OceanicJS/Oceanic/security/advisories/GHSA-5h5v-hw44-f6gg"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:49:23.840078609+00:00"},"epss":{"cve":"CVE-2024-34712","score":0.00556,"percentile":0.46381,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-5h5v-hw44-f6gg","url":"https://osv.dev/vulnerability/GHSA-5h5v-hw44-f6gg","summary":"Oceanic allows unsanitized user input to lead to path traversal in URLs","modified":"2026-09-10T03:50:13.312360914Z","packages":[{"ecosystem":"npm","name":"oceanic.js","purl":"pkg:npm/oceanic.js","ranges":["<1.10.4"],"fixed":["1.10.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}