Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-104861

HIGH · 7.5 CVSS Gepubliceerd: CWE-400

Beschrijving NL

probe-image-size krijgt afbeeldingsafmetingen zonder het hele bestand te downloaden. Voorafgaand aan 7.4.0 gebruiken lib/parse_sync/svg.js en lib/parse_stream/svg.js de reguliere zoekuitdrukking/]*>/, die herhaaldelijk scant tot het einde van de invoer wanneer door de aanvaller gecontroleerde gegevens veel minder dan tekens bevatten zonder een afsluitende groter dan teken. De synchrone parser converteert en scant de volledige meegeleverde buffer zonder een ingangskap, terwijl de streaming parser het volledige geaccumuleerde SVG-voorvoegsel herstelt voor elk ontvangen stuk. De toegangspuntenprobe.sync (), probe(stream) en probe(url) kunnen daarom de Node.js-gebeurtenislus op volledige CPU blokkeren en door aanvallers gecontroleerde chunking kan de streamingkosten vergroten. Dit probleem is opgelost in versie 7.4.0.

Origineel (Engels) tonen

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 /]*>/, 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.

References