CVE-2024-21521
HIGH 7.5CVSS 3.1@discordjs/opus vulnerable to Denial of Service
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.
- Published
- 10 Jul 2024
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-20CWE-400
- Also known as
- GHSA-43wq-xrcm-3vgr
- Sources
- NVDJSONOSV GHSA-43wq-xrcm-3vgrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | @discordjs/opus | <= 0.9.0 |
References
- https://gist.github.com/dellalibera/98c48fd74bb240adbd7841a5c02aba9e · WEB
- https://github.com/discordjs/opus/blob/814e500c2785c5207ace19650192629beba2728b/src/node-opus.cc%23L47
- https://security.snyk.io/vuln/SNYK-JS-DISCORDJSOPUS-6370643 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21521 · ADVISORY
- https://github.com/discordjs/opus · PACKAGE
- https://github.com/discordjs/opus/blob/814e500c2785c5207ace19650192629beba2728b/src/node-opus.cc#L47 · WEB
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 10 Jul 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 10 Jul 2024)