CVE-2026-107388 · GHSA-jjpr-9cvf-cq55
music-metadata: ID3v2 tag size not validated before allocation, causing memory exhaustion DoS
- Risk score
- 44/100
- CVSS
- 5.5 v3.1
- Exploit chance (30 days)
- 0.1%
- Published
- 8 Oct 2026
Open in the live forecast Today's forecast
What to know
- What it is
- 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 approa…
- Affected
- music-metadata (npm) <= 11.12.3
- Fix
- Upgrade music-metadata to 11.16.0 or later.
- Exploitation
- Public proof of concept
Why it is Yellow
- CVSS 5.5 medium
- Public exploit or proof of concept referenced
- On your watchlist: npm
Affected packages
| Package | Ecosystem | Vulnerable | Fixed in |
|---|---|---|---|
| music-metadata | npm | <= 11.12.3 | 11.16.0 |
References
- https://github.com/advisories/GHSA-jjpr-9cvf-cq55
- https://github.com/Borewit/music-metadata/security/advisories/GHSA-jjpr-9cvf-cq55
- https://github.com/Borewit/music-metadata/pull/2743
- https://github.com/Borewit/music-metadata/commit/b033db675b913a9dba1d29135ec3c10eae7095a7
- https://github.com/Borewit/music-metadata/releases/tag/v11.16.0
- https://github.com/advisories/GHSA-jjpr-9cvf-cq55
Original 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.
Last activity 8 Oct 2026. Patch Forecast updates every hour.