Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · net nu 160 bronnen 1 kritiek 14 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-49293

HIGH · 7.5 CVSS Gepubliceerd: CWE-400

Beschrijving NL

js-toml is een TOML-parser voor JavaScript, volledig compatibel met de TOML 1.0.0 Spec. Versies tot en met 1.1.0 parse hexadecimale / octale / binaire gehele getallen via een handgeschreven `parseBigInt` -lus die een `BigInt` -accumulator eenmaal per invoercijfer vermenigvuldigt met de radix. Elke iteratie voert een `BigInt * BigInt` -bewerking uit op een accumulator die lineair groeit met het aantal cijfers dat al is verbruikt, dus de hele lus is O(n²) in de letterlijke lengte. De lexer regex plaatst geen bovengrens op de letterlijke lengte, dus een enkel TOML-document met één ~500 kB hex letterlijke pennen één CPU-kern gedurende ~40 seconden op een moderne laptop (Apple M-serie, Node v22). Geheugenversterking is begrensd, maar CPU-versterking is ernstig en groeit kwadratisch: een verdubbeling van de letterlijke lengte verviervoudigt het werk. Een beller die `load()` aanroept op aanvaller-gecontroleerde TOML (configuratie-upload-eindpunten, CI/CD-systemen die `* .toml`, IDE-plug-ins, build-tools van derden binnenkrijgen) wordt blootgesteld aan een single-request CPU-uitputting DoS. Versie 1.1.1 lost het probleem op.

Origineel (Engels) tonen

js-toml is a TOML parser for JavaScript, fully compliant with the TOML 1.0.0 Spec. Versions up to and including 1.1.1 parse hexadecimal / octal / binary integer literals via a hand-written `parseBigInt` loop that multiplies a `BigInt` accumulator by the radix once per input digit. Each iteration performs a `BigInt * BigInt` operation on an accumulator that grows linearly with the number of digits already consumed, so the whole loop is O(n²) in the literal length. The lexer regex places no upper bound on the literal length, so a single TOML document containing one ~500 kB hex literal pins one CPU core for ~40 seconds on a modern laptop (Apple M-series, Node v22). Memory amplification is bounded but CPU amplification is severe and grows quadratically: doubling the literal length quadruples the work. A caller that invokes `load()` on attacker-controlled TOML (configuration upload endpoints, CI/CD systems ingesting third-party `*.toml`, IDE plugins, build tools) is exposed to a single-request CPU exhaustion DoS. Version 1.1.2 fixes the issue.

Vendors

Sunnyadn

Affected products

Js-toml

References