Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade smol-toml to version 1.9.0 or higher.
smol-toml is an A small, fast, and correct TOML parser/serializer
Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the parseKey function in src/struct.ts, which used the regular expression KEY_PART_RE (/^[a-zA-Z0-9-_]+[ \t]*$/) to validate bare key components. An attacker can supply a TOML document containing a long bare key with trailing characters that cause catastrophic backtracking in the regex engine, blocking the event loop and crashing the process.