CVE-2024-21522
JavaScript vulnerability analysis and mitigation

Overview

All versions of the package audify are vulnerable to Improper Validation of Array Index (CVE-2024-21522). The vulnerability was discovered and disclosed on February 20, 2024, and published on July 9, 2024. The vulnerability affects the OpusDecoder component in the audify package, which is used for playing, streaming, recording PCM audio data, and encoding/decoding Opus to PCM audio data (Snyk Advisory).

Technical details

The vulnerability occurs when frameSize is provided to the new OpusDecoder().decode or new OpusDecoder().decodeFloat functions, where it is not checked for negative values. The vulnerable code is present in the opus_decoder.cpp file. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, indicating it is network-accessible, requires low attack complexity, and can result in high availability impact (Snyk Advisory).

Impact

When exploited, this vulnerability can lead to a process crash due to invalid array indexing. The impact primarily affects the availability of the system, with no direct impact on confidentiality or integrity. The vulnerability can result in a Denial of Service (DoS) condition when a negative frameSize value is provided (GitHub PoC).

Exploitability

The vulnerability is exploitable by providing a negative frameSize value to the OpusDecoder().decode or OpusDecoder().decodeFloat functions. A proof-of-concept exploit has been published demonstrating the vulnerability. When exploited, it results in throwing a std::bad_array_new_length exception and subsequent process termination (GitHub PoC).

Mitigation and workarounds

Currently, there is no fixed version available for the audify package (Snyk Advisory). Users should monitor for updates and implement input validation for frameSize parameters as a temporary workaround.

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-77415CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77414CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77413CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-63421HIGH7.5
  • JavaScript logoJavaScript
  • @keystone-6/core
NoYesAug 21, 2026
CVE-2026-53509MEDIUM5.7
  • JavaScript logoJavaScript
  • @aborruso/ckan-mcp-server
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management