music-metadata is vulnerable to Denial of Service (Infinite Loop)
53
Medium Risk
The ASF (WMA) parser in lib/asf/AsfParser.ts uses a loop in parseObjectHeader that reads object headers and advances by remaining bytes. When a file supplies an invalid header object size, remaining can become negative; the code did not validate it and the loop could run indefinitely, causing denial of service. The patch adds an explicit check for remaining < 0 and throws AsfContentParseError, and removes the try/catch that previously swallowed parsing errors, so invalid input is rejected instead of hanging.
You are affected if you are using a version that falls within the vulnerable range.
music-metadata is vulnerable to Denial of Service (Infinite Loop) in versions 0.6.3 - 11.12.1.
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.

SOC 2Compliant
ISO 27001Compliant