{"schemaVersion":3,"id":"CVE-2026-104861","aliases":["GHSA-gjj5-9665-rwrc"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-10-02T17:56:15.515Z","modified":"2026-10-02T18:20:12.054Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00425,"percentile":0.35682,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-10-03T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00425,"percentile":0.35682}],"last30":[{"date":"2026-10-03T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00425,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00425,"percentile":0.35682}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity","description":"The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/1333.html"}],"affected":[{"vendor":"nodeca","product":"probe-image-size","name":"probe-image-size","label":"probe-image-size","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 7.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.4.0","eol":null,"hubHref":"/vendor/nodeca/probe-image-size"},{"vendor":"Npm","product":"probe-image-size","name":"probe-image-size","label":"probe-image-size","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/probe-image-size","purlType":"npm","versions":[{"text":"< 7.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.4.0","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/nodeca/probe-image-size/security/advisories/GHSA-gjj5-9665-rwrc","label":"github.com/nodeca/probe-image-size/security/advisories/GHSA-gjj5-9665-rwrc","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/nodeca/probe-image-size/commit/60cc96ac0b671e79e328213d0a8e831312b09e84","label":"github.com/nodeca/probe-image-size/commit/60cc96ac0b671e79e328213d0a8e831312b09e84","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/nodeca/probe-image-size/commit/9b74656d6f973cc59ea2ab1375c0d88390a402ad","label":"github.com/nodeca/probe-image-size/commit/9b74656d6f973cc59ea2ab1375c0d88390a402ad","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/nodeca/probe-image-size/commit/c032aefabdecf5cb50548ab9ba175db56353078f","label":"github.com/nodeca/probe-image-size/commit/c032aefabdecf5cb50548ab9ba175db56353078f","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/nodeca/probe-image-size/releases/tag/7.4.0","label":"github.com/nodeca/probe-image-size/releases/tag/7.4.0","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104861","label":"nvd.nist.gov/vuln/detail/CVE-2026-104861","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/nodeca/probe-image-size","label":"github.com/nodeca/probe-image-size","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-02T17:56:15.515Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-02T18:20:12.054Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T16:58:51.737Z","stale":false,"partial":false}}