Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @discordjs/opus
  4. ›
  5. CVE-2024-21521

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

July 10, 2024

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.

References

  • gist.github.com/dellalibera/98c48fd74bb240adbd7841a5c02aba9e
  • github.com/advisories/GHSA-43wq-xrcm-3vgr
  • github.com/discordjs/opus
  • github.com/discordjs/opus/blob/814e500c2785c5207ace19650192629beba2728b/src/node-opus.cc
  • nvd.nist.gov/vuln/detail/CVE-2024-21521
  • security.snyk.io/vuln/SNYK-JS-DISCORDJSOPUS-6370643

Code Behaviors & Features

Detect and mitigate CVE-2024-21521 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.9.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/@discordjs/opus/CVE-2024-21521.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:18 +0000.