discordjs/opus · Security
@discordjs/opus vulnerable to Denial of Service
- GHSA ID
- GHSA-43wq-xrcm-3vgr
- CVE ID
- CVE-2024-21521
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v4
- 8.7 · 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
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.
CWEs
- CWE-20 · Improper Input Validation
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21521 ↗
- https://gist.github.com/dellalibera/98c48fd74bb240adbd7841a5c02aba9e ↗
- https://security.snyk.io/vuln/SNYK-JS-DISCORDJSOPUS-6370643 ↗
- https://github.com/discordjs/opus/blob/814e500c2785c5207ace19650192629beba2728b/src/node-opus.cc#L47 ↗
- https://github.com/advisories/GHSA-43wq-xrcm-3vgr ↗