Unvalidated ID3v2 tag size in music-metadata causes memory exhaustion
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-789.
Summary
The npm package music-metadata before 11.16.0 is affected. The ID3v2 parser allocates the whole declared tag size before checking that the input holds those bytes (CWE-789). A local attacker supplying a truncated file with only an ID3v2 header can request an allocation approaching 268 MiB and exhaust memory, with no privileges or user interaction needed. A public proof-of-concept exploit is linked in the references.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Borewit | music-metadata | before 11.16.0 | 11.16.0 | Patch available | CNA |
| — | music-metadata (npm) | before 11.16.0 | 11.16.0 | Patch available | GHSA-jjpr-9cvf-cq55 |
- music-metadata VendorBorewit Affected before 11.16.0 Fixed in 11.16.0 Patch available CNA
- music-metadata (npm) Vendor— Affected before 11.16.0 Fixed in 11.16.0 Patch available GHSA-jjpr-9cvf-cq55
Remediation
Upgrade the npm package music-metadata to version 11.16.0, which fixes this issue. Earlier versions remain affected.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA music-metadata (Borewit) Fixed in 11.16.0
- Fix · GHSA-jjpr-9cvf-cq55 music-metadata (npm) Fixed in 11.16.0 Advisory →
Timeline
- 2026-10-09 Threatist record created from CVE-2026-107388
- 2026-10-09 Alias added: GHSA-jjpr-9cvf-cq55
- 2026-10-10 Priority changed: MEDIUM → LOW
- 2026-10-13 CVSS score added · NVD
- 2026-10-14 CISA SSVC decision points changed
- 2026-10-14 Priority changed: LOW → MEDIUM
References
Exploit 2
Patch 2
More Borewit Music-metadata vulnerabilities
- TI-2026-69734 Memory exhaustion in music-metadata MP4 parser via oversized atom CVSS 3.1HIGH 7.5
- TI-2026-69688 Unhandled rejection in music-metadata DSF parser crashes process CVSS 3.1HIGH 7.5
- TI-2026-69683 Excessive memory allocation in music-metadata EBML parser CVSS 3.1MEDIUM 6.2
- TI-2026-69681 Uncontrolled memory allocation in music-metadata APEv2 parser CVSS 3.1MEDIUM 6.2
- TI-2026-24785 music-metadata has an infinite loop vulnerability in ASF parser CVSS 3.1HIGH 7.5
- TI-2026-69694 Infinite loop in music-metadata MP4 parser causes denial of service CVSS 3.1HIGH 7.5
Sources
- CVE-2026-107388 · CVE Program
- CVE-2026-107388 · NVD
- FIRST EPSS
- GHSA-jjpr-9cvf-cq55 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences