Vulnerabilities

8 via 8 paths

Dependencies

21

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
  • 7
Status
  • 8
  • 0
  • 0

high severity

Infinite loop

  • Vulnerable module: music-metadata
  • Introduced through: music-metadata@7.14.0

Detailed paths

  • Introduced through: music-metadata-browser@Borewit/music-metadata-browser › music-metadata@7.14.0
    Remediation: Upgrade to music-metadata@11.12.3.

Overview

music-metadata is a Music metadata parser for Node.js, supporting virtual any audio and tag format.

Affected versions of this package are vulnerable to Infinite loop through the parseExtensionObject process in the ASF parser when handling a sub-object with objectSize = 0. An attacker can cause the application to hang indefinitely by providing a specially crafted .asf file that triggers an infinite loop during parsing.

Remediation

Upgrade music-metadata to version 11.12.3 or higher.

References

medium severity

Infinite loop

  • Vulnerable module: file-type
  • Introduced through: music-metadata@7.14.0

Detailed paths

  • Introduced through: music-metadata-browser@Borewit/music-metadata-browser › music-metadata@7.14.0 › file-type@16.5.4
    Remediation: Upgrade to music-metadata@11.3.0.

Overview

Affected versions of this package are vulnerable to Infinite loop in the FileTypeParser class. This is triggered when the ASF (WMV/WMA) parser receives input including an ASF sub-header with a size value of 0. An attacker can interrupt service with a 55-byte payload.

Remediation

Upgrade file-type to version 21.3.1 or higher.

References

medium severity

Infinite loop

  • Vulnerable module: music-metadata
  • Introduced through: music-metadata@7.14.0

Detailed paths

  • Introduced through: music-metadata-browser@Borewit/music-metadata-browser › music-metadata@7.14.0
    Remediation: Upgrade to music-metadata@11.16.0.

Overview

music-metadata is a Music metadata parser for Node.js, supporting virtual any audio and tag format.

Affected versions of this package are vulnerable to Infinite loop via the StsdAtom.get method in lib/mp4/AtomToken.ts when parsing MP4 files. The method iterates over stsd sample entries using an attacker-controlled numberOfEntries value without validating individual entry sizes or atom boundaries, allowing an attacker to supply a malformed MP4 file with invalid or oversized sample entry size fields that trigger an unhandled error and crash the process.

Remediation

Upgrade music-metadata to version 11.16.0 or higher.

References

medium severity

Memory Allocation with Excessive Size Value

  • Vulnerable module: music-metadata
  • Introduced through: music-metadata@7.14.0

Detailed paths

  • Introduced through: music-metadata-browser@Borewit/music-metadata-browser › music-metadata@7.14.0
    Remediation: Upgrade to music-metadata@11.16.0.

Overview

music-metadata is a Music metadata parser for Node.js, supporting virtual any audio and tag format.

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the ID3v2 tag parser in lib/id3v2/ID3v2Parser.ts, where a declared tag size in an ID3v2 header is not validated against the actual remaining file size before memory allocation. An attacker can supply an audio file with an inflated id3Header.size value, causing the parser to attempt allocation of an arbitrarily large buffer and crashing the process.

Remediation

Upgrade music-metadata to version 11.16.0 or higher.

References

medium severity

Memory Allocation with Excessive Size Value

  • Vulnerable module: music-metadata
  • Introduced through: music-metadata@7.14.0

Detailed paths

  • Introduced through: music-metadata-browser@Borewit/music-metadata-browser › music-metadata@7.14.0
    Remediation: Upgrade to music-metadata@11.16.0.

Overview

music-metadata is a Music metadata parser for Node.js, supporting virtual any audio and tag format.

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the APEv2 tag parser in APEv2Parser.ts, where a malicious audio file can specify an arbitrarily large tagItemHeader.size value that causes the parser to allocate a correspondingly large Uint8Array before any bytes are read, exhausting available memory and crashing the process.

Remediation

Upgrade music-metadata to version 11.16.0 or higher.

References

medium severity

Memory Allocation with Excessive Size Value

  • Vulnerable module: music-metadata
  • Introduced through: music-metadata@7.14.0

Detailed paths

  • Introduced through: music-metadata-browser@Borewit/music-metadata-browser › music-metadata@7.14.0
    Remediation: Upgrade to music-metadata@11.16.0.

Overview

music-metadata is a Music metadata parser for Node.js, supporting virtual any audio and tag format.

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the MP4 atom parser in lib/mp4/Atom.ts, where atom header sizes are not validated before payload allocation. An attacker can supply an MP4 file with malformed atom size fields - including values that exceed safe integer limits, extend beyond file or parent container boundaries, or describe truncated headers - causing uncontrolled resource consumption or a crash.

Remediation

Upgrade music-metadata to version 11.16.0 or higher.

References

medium severity

Memory Allocation with Excessive Size Value

  • Vulnerable module: music-metadata
  • Introduced through: music-metadata@7.14.0

Detailed paths

  • Introduced through: music-metadata-browser@Borewit/music-metadata-browser › music-metadata@7.14.0
    Remediation: Upgrade to music-metadata@11.16.0.

Overview

music-metadata is a Music metadata parser for Node.js, supporting virtual any audio and tag format.

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the EBML element parser in EbmlIterator.ts, where an attacker-controlled element length field is not validated before buffer or string allocation. By supplying an EBML input with an oversized declared leaf element length, an attacker can trigger allocation of hundreds of megabytes or gigabytes of memory, crashing the process.

Remediation

Upgrade music-metadata to version 11.16.0 or higher.

References

medium severity

Uncaught Exception

  • Vulnerable module: music-metadata
  • Introduced through: music-metadata@7.14.0

Detailed paths

  • Introduced through: music-metadata-browser@Borewit/music-metadata-browser › music-metadata@7.14.0
    Remediation: Upgrade to music-metadata@11.15.0.

Overview

music-metadata is a Music metadata parser for Node.js, supporting virtual any audio and tag format.

Affected versions of this package are vulnerable to Uncaught Exception via the DSF parser (DsfParser) when processing a malformed DSF file whose chunk header declares a size smaller than the chunk header itself. This produces a negative skip length passed to tokenizer.ignore(), which strtok3 rejects. Because the ignore() call was not awaited, the resulting promise rejection escapes the parser's promise chain and terminates the Node.js process as an unhandled rejection.

Remediation

Upgrade music-metadata to version 11.15.0 or higher.

References