{"id":"GHSA-5h5v-hw44-f6gg","revision":"35773b0e38894f6faef47dabad36425f","records":[{"revision":"35773b0e38894f6faef47dabad36425f","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-5h5v-hw44-f6gg","aliases":["CVE-2024-34712"],"title":"Oceanic allows unsanitized user input to lead to path traversal in URLs","description":"### Impact\nInput 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.\n\n### Workarounds\n* Sanitizing user input, ensuring strings are valid for the purpose they are being used for.\n* Encoding input with `encodeURIComponent` before providing it to the library.\n\n### References\nOceanicJS/Oceanic@8bf8ee8373b8c565fbdbf70a609aba4fbc1a1ffe","state":0,"publishedAt":"2024-05-14T20:13:58+00:00","modifiedAt":"2026-09-10T03:50:13.3123609+00:00","affected":[{"ecosystem":"npm","name":"oceanic.js","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.10.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/OceanicJS/Oceanic/security/advisories/GHSA-5h5v-hw44-f6gg","https://nvd.nist.gov/vuln/detail/CVE-2024-34712","https://github.com/OceanicJS/Oceanic/commit/8bf8ee8373b8c565fbdbf70a609aba4fbc1a1ffe","https://github.com/OceanicJS/Oceanic"],"sourceUrl":"https://github.com/advisories/GHSA-5h5v-hw44-f6gg","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5h5v-hw44-f6gg","identifiers":["GHSA-5h5v-hw44-f6gg","CVE-2024-34712"]},"retained":false,"historicalAffected":[]}],"coverage":[]}