Live threats

All CVEs / Discordjs

CVE-2022-25345Discordjs Opus

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Opus.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
discordjsopusall

Official sources

References

Links published by the sources. Open them with care.