Skip to main content

CVE-2026-104861: CWE-400: Uncontrolled Resource Consumption in nodeca probe-image-size

0
High
VulnerabilityCVE-2026-104861cvecve-2026-104861cwe-400cwe-1333
Published: 10/02/2026 (10/02/2026, 17:56:15 UTC)
Source: CVE Database V5
Vendor/Project: nodeca
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

nodeca

probe-image-size

Affected versions
<7.4.0
probe-image-size
pkg:npm/probe-image-size
Affected versions
<7.4.0

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

AILast updated: 10/02/2026, 18:16:03 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses