Uncaught Exception Affecting parse5 package, versions >=7.0.0 <8.1.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.65% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Uncaught Exception vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PARSE5-22742152
  • published23 Nov 2026
  • disclosed19 Nov 2026
  • creditJoshua Rogers

Introduced: 19 Nov 2026

NewCVE-2026-133245  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade parse5 to version 8.1.1 or higher.

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.

CVSS Base Scores

version 4.0
version 3.1