music-metadata is vulnerable to Denial of Service (DoS)
62
Medium Risk
The DSF (DSD Stream File) parser skips unrecognized chunks using an asynchronous tokenizer call that is not awaited. When a chunk reports a size smaller than its own header length, the parser attempts to skip a negative number of bytes, causing the underlying tokenizer to throw a RangeError. Because the skip call is detached from the promise chain, the rejection surfaces as an unhandled promise rejection that terminates the Node.js process even when the caller wraps parsing in try/catch. The fix validates chunk and metadata-pointer sizes and awaits the skip call so malformed input is rejected as a catchable error.
You are affected if you are using a version that falls within the vulnerable range and your application parses untrusted or externally supplied .dsf audio files.
music-metadata is vulnerable to Denial of Service (DoS) in versions 3.6.0 - 11.14.0.
Upgrade the music-metadata library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant