Description
parse5 7.0.0 before 8.1.1 contains an uncaught exception vulnerability in Preprocessor#_processSurrogate that allows remote attackers to crash applications by supplying two consecutive low surrogates. Attackers can submit input such as U+DC00 U+DC00, which decodes to out-of-range code point 0x110000 and throws a RangeError from parse, parseFragment, or streaming parsers, crashing Node.js processes.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
inikulin parse5
Default version status: unaffected
7.0.0 to < 8.1.1affected
pkg:npm/parse5References
- https://github.com/inikulin/parse5/releases/tag/v8.1.1 ↗
- https://github.com/inikulin/parse5/pull/1921 ↗
- https://github.com/inikulin/parse5/commit/9b57bf87db292b54337554d2fd21b2a54f0f1a36 ↗
- https://github.com/inikulin/parse5/blob/v8.1.0/packages/parse5/lib/tokenizer/preprocessor.ts#L80-L93 ↗
- https://github.com/inikulin/parse5 ↗
- https://www.vulncheck.com/advisories/parse5-7.0.0-before-8.1.1-denial-of-service-via-preprocessor-processsurrogate ↗