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.
Published: 2026-10-02
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Patch
AI Analysis

Impact

probe‑image‑size uses a regular expression that scans a given SVG string to locate image tags. When the input contains many unclosed < characters, the regex repeatedly scans to the end of the buffer, causing a worst‑case quadratic execution time. Attackers can supply such payloads to the probe.sync(), probe(stream), or probe(url) functions, causing the Node.js event loop to block entirely and preventing the application from servicing requests. The vulnerability is a classic denial‑of‑service flaw associated with the CWE identifiers for non‑controlled memory consumption and denial of service. The library’s synchronous parser is particularly vulnerable because it processes the entire buffer at once, while the streaming parser reparses the accumulated data for each chunk, an effect that can be amplified if the attacker chunks the payload in a specific pattern.

Affected Systems

The nodeca probe‑image‑size library, versions prior to the 7.4.0 release, are affected. Users of the 7.4.0 or later releases have applied the remediation commit that eliminates the inefficient regular expression. Any applications that depend on the library must verify the exact version used, and the vulnerability is present in all earlier releases.

Risk and Exploitability

(Note: because no EPSS score is available, the actual exploitation likelihood cannot be quantified. The high CVSS score suggests that the flaw is significant if the library is used with untrusted input.)

Generated by OpenCVE AI on October 2, 2026 at 19:21 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade nodeca probe‑image‑size to version 7.4.0 or newer, which removes the quadratic regular expression.
  • If an upgrade cannot be performed immediately, constrain the size of input data passed to probe.sync(), probe(stream), or probe(url) or temporarily avoid using these functions with untrusted SVG content.
  • Implement pre‑validation of SVG files using a strict XML parser or schema validation before invoking probe-image-size, ensuring that malformed or malicious SVGs are rejected early.
  • Monitor the Node.js event loop for sustained high CPU usage that may indicate a denial‑of‑service attack and add runtime safeguards to throttle or reject requests while the library is under attack.

Generated by OpenCVE AI on October 2, 2026 at 19:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-gjj5-9665-rwrc probe-image-size: Quadratic-time Denial of Service in the SVG Parser
History

Sun, 04 Oct 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Nodeca
Nodeca probe-image-size
Vendors & Products Nodeca
Nodeca probe-image-size

Sun, 04 Oct 2026 06:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 03 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Fri, 02 Oct 2026 18:00:00 +0000

Type Values Removed Values Added
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.
Title probe-image-size: Quadratic-time Denial of Service in the SVG Parser
Weaknesses CWE-1333
CWE-400
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

Nodeca Probe-image-size
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-02T18:20:12.054Z

Reserved: 2026-10-02T14:38:43.244Z

Link: CVE-2026-104861

cve-icon Vulnrichment

Updated: 2026-10-02T18:20:08.444Z

cve-icon NVD

Status : Deferred

Published: 2026-10-02T18:17:02.430

Modified: 2026-10-02T19:16:41.137

Link: CVE-2026-104861

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-02T17:56:15Z

Links: CVE-2026-104861 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-04T20:53:32Z

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-400

    Uncontrolled Resource Consumption