CVE-2026-107391 music-metadata: MP4 stsd sample-entry size==0 causes a synchronous infinite loop (DoS) — unreleased regression on master

Medium 6.2 Published Updated

A crafted MP4 file can cause an infinite loop and memory exhaustion in the music-metadata library, blocking the Node.js event loop.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-107391?

CVE-2026-107391 is a medium-severity denial of service vulnerability in Borewit music-metadata, published on 8 Oct 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

music-metadata is a metadata parser for audio and video media files. In the public development revision introduced after 11.14.0, a development-branch regression in the MP4 stsd sample-description parser allows an attacker-controlled sample-entry size of zero to prevent the StsdAtom.get cursor from advancing while an attacker-controlled entry_count keeps the synchronous loop running. A crafted MP4-family input can block the Node.js event loop and grow the sample-description table until the process is terminated or exhausts memory. The vulnerable change was present on the public master branch but was not included in music-metadata 11.14.0 or any earlier npm release, and version 11.16.0 contains the fix. This issue is fixed in version 11.16.0.

Weakness: CWE-835, CWE-400

Which versions are affected by CVE-2026-107391?

2 open source packages ship an affected version, including music-metadata. It affects 1 product.

PackageAffectedFixed in
music-metadata npmAll versions11.16.0
music-metadata npmAll versions11.16.0

Products include Borewit Music-Metadata.

How do I fix CVE-2026-107391?

Upgrade music-metadata to 11.16.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-107391 being exploited?

There is no known exploitation of CVE-2026-107391 in the wild and no public exploit code.

Sources

Also known as GHSA-f94x-6692-553q, MINI-q2pp-m6ch-94ch.

Is CVE-2026-107391 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free