<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-15T13:25:36.928923+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-v3rj-xjv7-4jmq</id>
    <title>GHSA-v3rj-xjv7-4jmq — smol-toml: Denial of Service via TOML documents containing thousands of consecutive commented lines</title>
    <updated>2026-10-15T13:25:36.938024+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: smol-toml</p>
<p>### Summary
An attacker can send a maliciously crafted TOML to cause the parser to crash, because of a stack overflow caused by thousands of consecutive commented lines.</p>
<p>The library uses recursion internally while parsing to skip over commented lines, which can be exploited to crash an application that is processing arbitrary TOML documents.</p>
<p>### Proof of concept
```js
require("smol-toml").parse('# comment\n'.repeat(8000) + 'key = "value"')
```</p>
<p>### Impact
Applications which parse arbitrary TOML documents may suffer availability issues if they receive malicious input. If uncaught, the crash may cause the application itself to crash. The impact is deemed minor, as the function is already likely to throw errors on invalid input. Downstream users are supposed to properly handle errors in such situations.</p>
<p>Due to the design of most JavaScript runtimes, the uncontrolled recursion does not lead to excessive memory usage and the execution is quickly aborted.</p>
<p>As a reminder, it is **strongly** advised when working with untrusted user input to expect errors to occur and to appropriately catch them.</p>
<p>### Patches
Version 1.6.1 uses a different approach for parsing comments, which no longer involves recursion.</p>
<p>### Workarounds
Wrap all invocations of `parse` and `stringify` in a try/catch block when dealing with untrusted user input.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-v3rj-xjv7-4jmq"/>
  </entry>
</feed>
