Vulnerabilities

1 via 1 paths

Dependencies

77

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0

high severity
new

Uncaught Exception

  • Vulnerable module: parse5
  • Introduced through: jsdom@24.1.3

Detailed paths

  • Introduced through: mechanize@srveit/mechanize-js › jsdom@24.1.3 › parse5@7.3.0
    Remediation: Upgrade to jsdom@27.0.1.

Overview

Affected versions of this package are vulnerable to Uncaught Exception in the Preprocessor class, whose _processSurrogate method pairs a code unit with a following low surrogate without confirming the first unit is a high surrogate. Two consecutive low surrogates such as U+DC00 U+DC00 decode to the out-of-range code point 0x110000, and String.fromCodePoint throws a RangeError that propagates out of parse, parseFragment, and the SAX and streaming parsers. An attacker who can supply HTML to an application that parses it, directly or through a dependent such as cheerio or jsdom, can crash the Node.js process with a few bytes of input. This affects parse5 built on the TypeScript tokenizer, where characters are emitted with String.fromCodePoint.

Remediation

Upgrade parse5 to version 8.1.1 or higher.

References