Description
probe-image-size 7.4.0 contains a regular expression denial of service vulnerability in lib/common/svg_header.js that allows remote unauthenticated attackers to block the event loop via crafted SVG doctypes. Attackers can supply SVGs with an unclosed internal subset followed by many ']' characters to trigger quadratic backtracking in probe.sync, probe(stream) or probe(url), causing repeated event loop stalls.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
nodeca probe-image-size
Default version status: unaffected
7.4.0 to < 7.5.0affected
pkg:npm/probe-image-sizeReferences
- https://github.com/nodeca/probe-image-size/security/advisories/GHSA-5jh3-w3fj-6758 ↗
- https://github.com/nodeca/probe-image-size/commit/ca291344edea53df47432ca8dbd25e66b8ea8600 ↗
- https://github.com/nodeca/probe-image-size/blob/64565c3c8b4b69655426cdfce250e6a93455c9da/lib/common/svg_header.js#L30 ↗
- https://www.npmjs.com/package/probe-image-size/v/7.5.0 ↗
- https://www.vulncheck.com/advisories/probe-image-size-7.4.0-redos-via-svg-doctype-prolog-parser ↗