Intel

AIKIDO-2026-10374

music-metadata is vulnerable to Denial of Service (Infinite Loop)

Denial of Service (Infinite Loop) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Mar 17, 2026

53

Medium Risk

This Affects:

JSmusic-metadata
0.6.3 - 11.12.1
Fixed in 11.12.2
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

music-metadata is vulnerable to Denial of Service (Infinite Loop) in versions 0.6.3 - 11.12.1.

How to fix this

Upgrade the music-metadata library to the patch version.