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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-104861
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 04:12 UTC · Revision 1
Source evidence
probe-image-size: Quadratic-time Denial of Service in the SVG Parser
core-osv · Original sourcePublished 2 Oct 2026, 17:56 UTC
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.
osv:CVE-2026-104861
Complete source record
{
"id": "271771f2846250922b856e9cb2d27a5fc6d89cb8ca8cff0fa31f39d291fa8335",
"url": "https://osv.dev/vulnerability/CVE-2026-104861",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "probe-image-size: Quadratic-time Denial of Service in the SVG Parser",
"summary": "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.",
"evidence": "osv:CVE-2026-104861",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-104861",
"aliases": [
"CVE-2026-104861",
"GHSA-gjj5-9665-rwrc"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nodeca/probe-image-size",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "64565c3c8b4b69655426cdfce250e6a93455c9da"
},
{
"fixed": "60cc96ac0b671e79e328213d0a8e831312b09e84"
},
{
"fixed": "9b74656d6f973cc59ea2ab1375c0d88390a402ad"
},
{
"fixed": "c032aefabdecf5cb50548ab9ba175db56353078f"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "7.4.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "60cc96ac0b671e79e328213d0a8e831312b09e84"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "9b74656d6f973cc59ea2ab1375c0d88390a402ad"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "c032aefabdecf5cb50548ab9ba175db56353078f"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "64565c3c8b4b69655426cdfce250e6a93455c9da"
}
],
"source": "REFERENCES_TAG",
"original_tag": "7.4.0"
}
]
}
}
],
"versions": [
"7.3.0",
"7.2.3",
"7.2.2",
"7.2.1",
"7.2.0",
"7.1.1",
"7.1.0",
"7.0.1",
"7.0.0",
"5.0.0",
"4.1.1",
"4.1.0",
"4.0.1",
"4.0.0",
"3.2.0",
"3.1.0",
"3.0.0",
"2.2.0",
"2.1.1",
"2.1.0",
"2.0.1",
"2.0.0",
"1.2.1",
"1.2.0",
"1.1.0",
"1.0.6",
"1.0.5",
"1.0.4",
"1.0.3",
"1.0.2",
"1.0.1",
"1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-104861.json"
}
}
],
"modified": "2026-10-28T02:30:25.610321613Z",
"provider": "osv",
"references": [
"https://github.com/nodeca/probe-image-size/releases/tag/7.4.0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104861.json",
"https://github.com/nodeca/probe-image-size/security/advisories/GHSA-gjj5-9665-rwrc",
"https://nvd.nist.gov/vuln/detail/CVE-2026-104861",
"https://github.com/nodeca/probe-image-size/commit/60cc96ac0b671e79e328213d0a8e831312b09e84",
"https://github.com/nodeca/probe-image-size/commit/9b74656d6f973cc59ea2ab1375c0d88390a402ad",
"https://github.com/nodeca/probe-image-size/commit/c032aefabdecf5cb50548ab9ba175db56353078f"
],
"provider_metadata": {
"cwe_ids": [
"CWE-1333",
"CWE-400"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104861.json"
}
},
"related_cves": [
{
"value": "CVE-2026-104861",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 492417,
"published_at": "2026-10-02T17:56:15.515+00:00"
}