CVE-2022-25345Discordjs Opus
High 7.5 No auth needed
Follow: this CVE · Discordjs · Discordjs Opus We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Jun 17, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-908
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
All versions of package @discordjs/opus are vulnerable to Denial of Service (DoS) when trying to encode using an encoder with zero channels, or a non-initialized buffer. This leads to a hard crash.
What to do
- Apply the vendor's security update for Opus.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @discordjs/opus |
< 0.8.0 |
0.8.0 |
npm install @discordjs/opus@0.8.0 |
Per OSV / GitHub Advisories (GHSA-rvgf-69j7-xh78). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| discordjs | opus | all |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link Third Party Advisory
- snyk.io Exploit Third Party Advisory