# CVE-2024-21521: @discordjs/opus vulnerable to Denial of Service

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- 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.60%, higher than 49% of CVEs (2026-12-01)
- Published: 2024-07-10T05:00:05.872Z
- Modified: 2026-06-17T07:09:40.200Z
- Also known as: GHSA-43wq-xrcm-3vgr
- Weaknesses: CWE-20, CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- @discordjs/opus: before *
- discordjs_opus discordjs_opus: up to *
- @discordjs/opus (npm): up to 0.9.0

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://security.snyk.io/vuln/SNYK-JS-DISCORDJSOPUS-6370643> (web)
- <https://github.com/discordjs/opus/blob/814e500c2785c5207ace19650192629beba2728b/src/node-opus.cc%23L47>
- <https://gist.github.com/dellalibera/98c48fd74bb240adbd7841a5c02aba9e> (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)

## Sources

- CVE List: [CVE-2024-21521](https://www.cve.org/CVERecord?id=CVE-2024-21521), CVE Terms of Use, modified 2025-01-26
- GitHub Advisory Database: [GHSA-43wq-xrcm-3vgr](https://github.com/advisories/GHSA-43wq-xrcm-3vgr), CC-BY-4.0, modified 2024-07-11
- NVD: [CVE-2024-21521](https://nvd.nist.gov/vuln/detail/CVE-2024-21521), Public domain, modified 2026-06-17

---

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