CVE-2026-107388 music-metadata: ID3v2 tag size not validated before allocation, causing memory exhaustion DoS
An attacker can cause memory exhaustion and denial of service by providing a truncated audio file with a large ID3v2 tag size header.
- 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-107388?
CVE-2026-107388 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. Prior to 11.16.0, the ID3v2 parser trusts the syncsafe tag-size field and allocates the complete tag body before checking whether the input contains the declared bytes. A truncated file containing only an ID3v2 header can request an allocation approaching 268 MiB; the allocation succeeds, the subsequent read reaches end of stream, the EndOfStreamError is caught internally, and the caller receives a normal metadata object. This issue is fixed in version 11.16.0.
Weakness: CWE-789
Which versions are affected by CVE-2026-107388?
2 open source packages ship an affected version, including music-metadata. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
music-metadata npm | All versions | 11.16.0 |
music-metadata npm | All versions | 11.16.0 |
Products include Borewit Music-Metadata.
How do I fix CVE-2026-107388?
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-107388 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-107388 exists.
Other vulnerabilities in Borewit music-metadata
- CVE-2026-32256 music-metadata has an infinite loop vulnerability in ASF parser
- CVE-2026-107387 music-metadata: Uncontrolled memory allocation in APEv2 parser
- CVE-2026-107389 music-metadata: EBML parser trusts element lengths, allowing memory exhaustion or process abort
- CVE-2026-107390 music-metadata: MP4 parser allows memory exhaustion via oversized extended atom length
- CVE-2026-107391 music-metadata: MP4 stsd sample-entry size==0 causes a synchronous infinite loop (DoS) — unreleased regression on master
Sources
Also known as GHSA-jjpr-9cvf-cq55, MINI-c4p3-84g8-v6f6.