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 | Vendor | Product | Affected 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.
References
- https://github.com/nodeca/probe-image-size Product
- https://github.com/nodeca/probe-image-size/releases/tag/7.4.0 URL
- https://github.com/nodeca/probe-image-size/commit/60cc96ac0b671e79e328213d0a8e83... Patch
- https://github.com/nodeca/probe-image-size/commit/9b74656d6f973cc59ea2ab1375c0d8... Patch
- https://github.com/nodeca/probe-image-size/commit/c032aefabdecf5cb50548ab9ba175d... Patch
- https://github.com/nodeca/probe-image-size/security/advisories/GHSA-gjj5-9665-rw... Vendor Advisory
- https://github.com/advisories/GHSA-gjj5-9665-rwrc
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-1048... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-104861 Vendor Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Type
CWE-400Uncontrolled Resource Consumption
CWE-1333Inefficient Regular Expression Complexity (ReDoS)
Timeline
Published2 Oct 2026
Updated4 Nov 2026
First seen2 Oct 2026
Sources
CVE-2026-104861 · NVD
CVE-2026-104861 · MITRE
GHSA-gjj5-9665-rwrc · GHSA
CVE-2026-104861 · OSV
GHSA-gjj5-9665-rwrc · OSV
Track software like this
Free during beta