CVE-2026-104861: CWE-400: Uncontrolled Resource Consumption in nodeca probe-image-size
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.
AI Analysis
Technical Summary
The probe-image-size library versions before 7.4.0 use a regular expression /<[-_.:a-zA-Z0-9][^>]*>/ in lib/parse_sync/svg.js and lib/parse_stream/svg.js to parse SVG image dimensions without downloading the entire file. When attacker-controlled input contains many '<' characters without a closing '>', the regex repeatedly scans to the end of input, causing excessive CPU usage. The synchronous parser scans the entire buffer without input size limits, while the streaming parser reparses the entire accumulated SVG prefix for each chunk, amplifying the resource consumption. This leads to blocking the Node.js event loop and high CPU load, resulting in a denial of service condition. The issue is resolved in version 7.4.0.
Potential Impact
An attacker can supply specially crafted SVG data that causes the probe-image-size library to consume excessive CPU resources, blocking the Node.js event loop. This results in denial of service (DoS) due to uncontrolled resource consumption. There is no impact on confidentiality or integrity reported.
Mitigation Recommendations
Upgrade probe-image-size to version 7.4.0 or later, where this vulnerability is fixed. No other mitigations are specified or required.
CVE-2026-104861: CWE-400: Uncontrolled Resource Consumption in nodeca probe-image-size
Description
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.
CVSS v3.1
Score 7.5high
Affected software
nodeca
probe-image-size
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The probe-image-size library versions before 7.4.0 use a regular expression /<[-_.:a-zA-Z0-9][^>]*>/ in lib/parse_sync/svg.js and lib/parse_stream/svg.js to parse SVG image dimensions without downloading the entire file. When attacker-controlled input contains many '<' characters without a closing '>', the regex repeatedly scans to the end of input, causing excessive CPU usage. The synchronous parser scans the entire buffer without input size limits, while the streaming parser reparses the entire accumulated SVG prefix for each chunk, amplifying the resource consumption. This leads to blocking the Node.js event loop and high CPU load, resulting in a denial of service condition. The issue is resolved in version 7.4.0.
Potential Impact
An attacker can supply specially crafted SVG data that causes the probe-image-size library to consume excessive CPU resources, blocking the Node.js event loop. This results in denial of service (DoS) due to uncontrolled resource consumption. There is no impact on confidentiality or integrity reported.
Mitigation Recommendations
Upgrade probe-image-size to version 7.4.0 or later, where this vulnerability is fixed. No other mitigations are specified or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-02T14:38:43.244Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6abff1c0a43b0b3b89e7fb5d
Added to database: 10/02/2026, 18:02:40 UTC
Last enriched: 10/02/2026, 18:16:03 UTC
Last updated: 10/02/2026, 18:46:49 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.