Vulnerabilities

1 via 3 paths

Dependencies

128

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: cheerio@1.2.0

Detailed paths

  • Introduced through: @houtini/geo-analyzer@houtini-ai/geo-analyzer › cheerio@1.2.0 › parse5@7.3.0
  • Introduced through: @houtini/geo-analyzer@houtini-ai/geo-analyzer › cheerio@1.2.0 › parse5-htmlparser2-tree-adapter@7.1.0 › parse5@7.3.0
  • Introduced through: @houtini/geo-analyzer@houtini-ai/geo-analyzer › cheerio@1.2.0 › parse5-parser-stream@7.1.2 › parse5@7.3.0

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