PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-107391 Borewit CVE debrief

A vulnerability in the music-metadata library causes a synchronous infinite loop when parsing MP4 files with a sample description box entry size of 0, leading to a denial-of-service (DoS) attack. This issue is present on the master branch but not in the latest npm release (11.14.0) or earlier versions. The vulnerability is caused by the StsdAtom.get() function in lib/mp4/AtomToken.ts, which parses an MP4 stsd (sample description) box's entry table. When the entry size is 0, the function spins forever, blocking the Node.js event loop entirely for the whole process. A 48-byte file is enough to hang any service that parses user-uploaded audio/video metadata through parseBuffer, parseF

Vendor
Borewit
Product
music-metadata
CVSS
MEDIUM 6.2
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-08
Original CVE updated
2026-10-08
Advisory published
2026-10-08
Advisory updated
2026-10-08

Who should care

Defenders of services that parse user-uploaded audio/video metadata using music-metadata should assess exposure and prioritize patching or mitigation. This includes reviewing the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance. They should also plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.

Why it matters

Defenders should prioritize patching or mitigating CVE-2026-107391, a DoS vulnerability in music-metadata, especially in services that parse user-uploaded audio/video metadata, as it can cause a synchronous infinite loop and block the Node.js event loop.

  • Denial-of-service (DoS) attack
  • Event loop blocking in Node.js
  • Potential for service disruption

Technical summary

The StsdAtom.get() function in lib/mp4/AtomToken.ts is vulnerable to a DoS attack when parsing MP4 files with a sample description box entry size of 0. This issue is present on the master branch but not in the latest npm release (11.14.0) or earlier versions. The vulnerability causes a synchronous infinite loop, blocking the Node.js event loop entirely for the whole process. A 48-byte file is enough to hang any service that parses user-uploaded audio/video metadata through parseBuffer, parseFile, parseStream, parseBlob, or parseWebStream.

Defensive priority

Defenders should prioritize patching or mitigating this vulnerability, especially in services that parse user-uploaded audio/video metadata.

Recommended defensive actions

  • Patch music-metadata to version 11.16.0 or later
  • Mitigate by limiting user-uploaded audio/video metadata parsing
  • Monitor for suspicious MP4 file uploads
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The vulnerability is caused by the StsdAtom.get() function in lib/mp4/AtomToken.ts, which parses an MP4 stsd (sample description) box's entry table. When the entry size is 0, the function spins forever, blocking the Node.js event loop entirely for the whole process. A 48-byte file is enough to hang any service that parses user-uploaded audio/video metadata through parseBuffer, parseFile, parseStream, parseBlob, or parseWebStream. This issue is currently unreleased — present on the master branch only, not in the latest npm release (11.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-107391 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-107391

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-107391 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-107391

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • music-metadata: MP4 stsd sample-entry size==0 causes a synchronous infinite loop (DoS) — unrelea

    Unverified legacy reference

    URL: https://storage.googleapis.com/osv-vulnerabilities/npm/GHSA-f94x-6692-553q.json

    osv_dev

  • Source reference

    Unverified legacy reference

    URL: https://github.com/Borewit/music-metadata/security/advisories/GHSA-f94x-6692-553q

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/Borewit/music-metadata/pull/2734

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/Borewit/music-metadata/commit/90a7d52c69e921a0b019592d887acd97b1c8b8a5

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/Borewit/music-metadata

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/Borewit/music-metadata/releases/tag/v11.16.0

    Supplemental source

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.