Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

Medium · 6.2 Node.js & npm GHSA-jjpr-9cvf-cq55 CVE-2026-107388 GHSA-f94x-6692-553q CVE-2026-107391

music-metadata: Two Denial-of-Service Flaws Fixed in Version 11.16.0

The npm package music-metadata contained two separate denial-of-service weaknesses in its MP4 and ID3v2 parsers. Both are fixed in version 11.16.0.

By PatchBriefing ·

Produced automatically from official sources with the help of AI. How we work →

AI summary

Two denial-of-service vulnerabilities have been identified in music-metadata, an npm package used to parse metadata from audio and video files. One issue affects an unreleased development revision of the MP4 parser, while the other affects the ID3v2 parser in released versions up to 11.14.0. Both issues are resolved in version 11.16.0.

What happened

Two distinct denial-of-service weaknesses were identified in music-metadata, an npm package that parses metadata from audio and video media files. The first (CVE-2026-107391) affects the MP4 stsd (sample-description) parser: a crafted sample-entry size of zero combined with an attacker-controlled entry count can prevent the parser's read cursor from advancing, causing a synchronous loop that blocks the Node.js event loop and grows memory usage until the process is terminated or runs out of memory. The second (CVE-2026-107388) affects the ID3v2 parser: it trusts a syncsafe tag-size field and allocates the full declared tag size before verifying that the input actually contains that many bytes, allowing a truncated file to trigger an allocation of nearly 268 MiB while still returning what looks like a normal, successfully parsed metadata object.

Technical cause

CVE-2026-107391 (CWE-400, resource consumption) stems from a regression introduced on the public development branch after version 11.14.0. In the StsdAtom.get parsing routine, a sample-entry size of zero fails to advance the read cursor, so an attacker-controlled entry_count value keeps a synchronous loop running indefinitely while the sample-description table grows unbounded. This specific regression was never shipped in an npm release; it existed only on the public master branch before the fix landed in 11.16.0. CVE-2026-107388 (CWE-789, memory allocation without limits) is present in released versions prior to 11.16.0. The ID3v2 parser reads a syncsafe tag-size field and immediately allocates a buffer of that declared size before confirming the underlying stream actually contains that much data. A deliberately truncated ID3v2 header can request an allocation of up to roughly 268 MiB. The allocation succeeds, the subsequent read then hits end-of-stream, the resulting EndOfStreamError is caught internally, and the caller is handed back a metadata object that appears normal despite the oversized allocation having already occurred.

Why it matters

Applications that use music-metadata to process user-supplied or otherwise untrusted media files could have their Node.js process blocked or exhausted of memory by a single crafted input file, without requiring authentication or user interaction beyond submitting the file for parsing. This can result in service disruption (denial of service) for any application or service built on this library, such as media upload handlers, metadata extraction pipelines, or content management systems.

Who is affected

Developers and operators of applications that depend on the music-metadata npm package to parse MP4-family or ID3v2-tagged media files are affected. For CVE-2026-107388, this includes any released version prior to 11.16.0. For CVE-2026-107391, the affected code was never part of a released npm version — it existed only in the public development branch between the 11.14.0 release and the 11.16.0 fix — so only users who installed directly from that unreleased source would have been exposed.

Affected versions

music-metadata: CVE-2026-107388 affects versions prior to 11.16.0. CVE-2026-107391 affects an unreleased development-branch revision that existed after the 11.14.0 release but was never published as an npm package version; it was not present in 11.14.0 or any earlier release. Both issues are resolved in version 11.16.0.

Fixes and mitigation

Both vulnerabilities are fixed in music-metadata version 11.16.0. No other mitigations are described in the available information.

Recommended action

Update the music-metadata package to version 11.16.0 or later. Projects that may have installed the package directly from the unreleased development branch (rather than from a published npm release) should also update to 11.16.0 to ensure the MP4 parser regression is not present.

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.0047 (33 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
music-metadata ≥ 0 < 11.16.0
vulnerable
≥ 11.16.0
patched

Reported fixes

Both vulnerabilities are fixed in music-metadata version 11.16.0. No other mitigations are described in the available information.

How this was built

5 source records were collected, matched and used to prepare the report above.

  • OSV.dev database
  • OSV.dev database
  • CVE.org database
  • NVD (NIST) database
  • NVD (NIST) database
Unified report
music-metadata: Two Denial-of-Service Flaws Fixed in Version 11.16.0
1 article · 5 sources cited
Revision history
  1. Generated
  2. Published
  3. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email