Medium · 6.2 Node.js & npm GHSA-5gfj-9q3v-qfp3 CVE-2026-107389
music-metadata: EBML Parser Flaw Allows Memory Exhaustion or Process Crash (CVE-2026-107389)
A flaw in the music-metadata npm package's Matroska/WebM parser lets crafted media files trigger excessive memory allocation or a process crash. Fixed in version 11.16.0.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A vulnerability has been identified in music-metadata, a Node.js package used to parse metadata from audio and video files. The issue affects how the package reads certain Matroska-family file formats and can be triggered by a maliciously crafted file, leading to excessive memory use or an application crash. A fixed version is available.
What happened
A vulnerability tracked as CVE-2026-107389 (GHSA-5gfj-9q3v-qfp3) was identified in music-metadata, a metadata parser for audio and video files. The flaw lies in the parser's handling of the Matroska/WebM/MKA (EBML) file formats, where a crafted input file can cause the library to allocate excessive memory or cause the host process to crash.
Technical cause
The EBML parser used for Matroska and WebM files reads an attacker-controlled VINT (variable-length integer) element length from the file and uses it directly to allocate memory for a string token or a byte array. This allocation happens before the parser confirms that the declared element actually fits within its parent structure or the available input data. As a result, a crafted file can cause the parser to attempt an unreasonably large allocation. The fact package notes that the exact failure mode depends on the tokenizer, the parser API used, and the JavaScript runtime, but the underlying leaf-length validation flaw is the same across these paths. This is classified under CWE-789 (Memory Allocation with Excessive Size Value). The impact is limited to availability; there is no indication of confidentiality or integrity impact.
Why it matters
Applications that use music-metadata to read untrusted or user-supplied audio/video files can be disrupted by a single crafted file, resulting in denial of service through memory exhaustion or a crash. On Node.js version 26.7.0, a demonstrated parseFile code path led to an uncatchable V8 fatal abort, meaning the process could not gracefully recover from the error. This is particularly relevant for services that automatically process uploaded media files.
Who is affected
Any application or service using the music-metadata npm package to parse Matroska, WebM, or MKA files prior to version 11.16.0 is potentially affected. The demonstrated crash scenario was shown specifically on Node.js version 26.7.0, though the underlying parsing flaw is not limited to that runtime.
Affected versions
All versions of music-metadata starting from version 0 up to, but not including, version 11.16.0 are affected. The issue is fixed in version 11.16.0.
Fixes and mitigation
The vendor has released music-metadata version 11.16.0, which fixes the leaf-length validation flaw in the EBML parser. Users should update to this version or later.
Recommended action
Update the music-metadata package to version 11.16.0 or later as soon as possible, particularly if your application processes media files from untrusted or external sources. If immediate updating is not possible, consider isolating or sandboxing processes that parse user-supplied Matroska/WebM/MKA files, and monitor for abnormal memory usage or crashes during media parsing.
PatchBriefing score
6.2 / 10 · Medium
Official CVSS: 6.2
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS 0.0017 (4 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- music-metadata ≥ 0 < 11.16.0
- vulnerable
- ≥ 11.16.0
- patched
Reported fixes
The vendor has released music-metadata version 11.16.0, which fixes the leaf-length validation flaw in the EBML parser. Users should update to this version or later.
How this was built
2 source records were collected, matched and used to prepare the report above.
-
OSV.dev database
-
NVD (NIST) database
Revision history
- Generated
- Published
- Generated