tomlkit is vulnerable to Uncontrolled Recursion
53
Medium Risk
The TOML parser parses nested arrays, nested inline tables, and dotted keys recursively, and every nesting level or dotted-key fragment adds a level of recursion without any depth limit. Crafted deeply nested input drives this recursion until it exhausts the interpreter stack. Before the fix, such input crashed the parsing process with an uncontrolled RecursionError, allowing a denial of service against any application that parses attacker-controlled TOML. The fix enforces a maximum nesting depth of 100 for values and dotted-key fragments and raises a ParseError instead of recursing without bound.
You are affected if you are using a version that falls within the vulnerable range and parse untrusted or attacker-controlled TOML input.
tomlkit is vulnerable to Uncontrolled Recursion in versions 0.1.0 - 0.15.0.
Upgrade the tomlkit library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant