Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.5

CVE-2026-104861: probe-image-size can freeze Node.js with crafted SVG

CVE-2026-104861 · published 1 month ago
Summary

The probe-image-size library, used to get image dimensions, can get stuck when it processes specially crafted SVG files that contain many '<' characters without closing '>'. This can cause the server's Node.js process to use all CPU and stop handling other requests. Upgrade to version 7.4.0 or later to resolve the issue.

What to do
  • Update vitaly probe-image-size to version 7.4.0.
  • Update probe-image-size to version 7.4.0.
Affected software
Ecosystem VendorProductAffected versions
– nodeca probe-image-size < 7.4.0
npm vitaly probe-image-size <= 7.3.0
Fix: upgrade to 7.4.0
npm – probe-image-size <= 7.3.0
< 7.4.0
Fix: upgrade to 7.4.0
Original advisory text
probe-image-size: Quadratic-time Denial of Service in the SVG Parser
probe-image-size gets image dimensions without downloading the entire file. Prior to 7.4.0, lib/parse_sync/svg.js and lib/parse_stream/svg.js use the searching regular expression /<[-_.:a-zA-Z0-9][^>]*>/, which repeatedly scans to the end of input when attacker-controlled data contains many less-than characters without a closing greater-than character. The synchronous parser converts and scans the full supplied buffer without an input cap, while the streaming parser reparses the complete accumulated SVG prefix for every received chunk. The probe.sync(), probe(stream), and probe(url) entry points can therefore block the Node.js event loop at full CPU, and attacker-controlled chunking can amplify the streaming cost. This issue is fixed in version 7.4.0.
Fix within
Internet-facing 14 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically
  • Gives an attacker partial control
Severity
7.5 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-400Uncontrolled Resource Consumption
CWE-1333Inefficient Regular Expression Complexity (ReDoS)
Timeline
Published2 Oct 2026
Updated4 Nov 2026
First seen2 Oct 2026
Track software like this
Free during beta