CyberRota Analysis
AI-GeneratedThe smol-toml parser prior to version 1.7.1 is vulnerable to an infinite loop when processing TOML arrays or inline tables that are followed by comments without a trailing newline. This flaw can lead to denial-of-service conditions by consuming excessive processing resources when parsing maliciously crafted TOML inputs. Organizations using affected versions of smol-toml should prioritize upgrading to version 1.7.1 to mitigate this high-severity vulnerability.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
smol-toml is a small, fast, and correct TOML parser and serializer. Prior to 1.7.1, parse() can enter an infinite loop when a value inside an array or inline table is followed by a comment with no trailing newline. In src/util.ts, skipUntil() calls indexOfNewline(), receives -1 at the end of input, and resets the cursor to the beginning of the string instead of leaving the structure scan. The parser then hangs indefinitely and can consume a service's processing capacity when an application parses attacker-controlled TOML. This issue is fixed in version 1.7.1.