{"id":"CVE-2024-21521","aliases":["EUVD-2024-2242","GHSA-43wq-xrcm-3vgr"],"status":"published","title":"@discordjs/opus vulnerable to Denial of Service","description":"All versions of the package @discordjs/opus are vulnerable to Denial of Service (DoS) due to providing an input object with a property toString to several different functions. Exploiting this vulnerability could lead to a system crash.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00597,"percentile":0.49079,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-20","CWE-400"],"published":"2024-07-10T05:00:05Z","modified":"2026-06-17T07:09:40Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"@discordjs/opus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.9.0"}]}]},{"source":"osv","ecosystem":"npm","package":"@discordjs/opus","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.9.0"}]}]}],"products":[{"vendor":"discordjs_opus","product":"discordjs_opus"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-DISCORDJSOPUS-6370643","tags":["x_transferred","web"]},{"url":"https://github.com/discordjs/opus/blob/814e500c2785c5207ace19650192629beba2728b/src/node-opus.cc%23L47","tags":["x_transferred"]},{"url":"https://gist.github.com/dellalibera/98c48fd74bb240adbd7841a5c02aba9e","tags":["x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21521","tags":["advisory"]},{"url":"https://github.com/discordjs/opus/blob/814e500c2785c5207ace19650192629beba2728b/src/node-opus.cc#L47","tags":["web"]},{"url":"https://github.com/advisories/GHSA-43wq-xrcm-3vgr"},{"url":"https://github.com/discordjs/opus","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-21521","description":"All versions of the package @discordjs/opus are vulnerable to Denial of Service (DoS) due to providing an input object with a property toString to several different functions. Exploiting this vulnerability could lead to a system crash.","status":"published","published":"2024-07-10T05:00:05.872Z","modified":"2025-01-26T16:12:38.405Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high","assessor":"cna"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:34:05.077718Z"}],"euvd":[{"id":"EUVD-2024-2242","description":"All versions of the package @discordjs/opus are vulnerable to Denial of Service (DoS) due to providing an input object with a property toString to several different functions. Exploiting this vulnerability could lead to a system crash.","status":"published","published":"2024-07-10T05:00:05Z","modified":"2025-01-26T16:12:38Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high"}],"updated_at":"2026-11-03T00:04:13.087176Z"}],"ghsa":[{"id":"GHSA-43wq-xrcm-3vgr","title":"@discordjs/opus vulnerable to Denial of Service","description":"All versions of the package @discordjs/opus are vulnerable to Denial of Service (DoS) due to providing an input object with a property toString to several different functions. Exploiting this vulnerability could lead to a process crash.","status":"published","published":"2024-07-10T06:33:51Z","modified":"2024-07-31T05:02:57Z","cvss":[{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:37:56.530214Z"}],"nvd":[{"id":"CVE-2024-21521","description":"All versions of the package @discordjs/opus are vulnerable to Denial of Service (DoS) due to providing an input object with a property toString to several different functions. Exploiting this vulnerability could lead to a system crash.","status":"published","published":"2024-07-10T05:15:10.653Z","modified":"2026-06-17T07:09:40.2Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:10:12.016585Z"}],"osv":[{"id":"GHSA-43wq-xrcm-3vgr","title":"@discordjs/opus vulnerable to Denial of Service","description":"All versions of the package @discordjs/opus are vulnerable to Denial of Service (DoS) due to providing an input object with a property toString to several different functions. Exploiting this vulnerability could lead to a process crash.","status":"published","published":"2024-07-10T06:33:51Z","modified":"2024-07-11T19:10:43Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:36.434231Z"}]}}
