THREAT OPS › Threat News › [GHSA] GHSA-r4xh-jqrq-34v2 (medium) — smol-toml: Quadratic-time parse() from parseKey rescanning to end of document on each key line
[GHSA] GHSA-r4xh-jqrq-34v2 (medium) — smol-toml: Quadratic-time parse() from parseKey rescanning to end of document on each key line
GHSA-r4xh-jqrq-34v2 Severity: medium CVE: None
smol-toml: Quadratic-time parse() from parseKey rescanning to end of document on each key line
### Summary
`parse()` has a quadratic-time path in `parseKey`, reachable on default options with ordinary valid input. For every key line and table-header line, `parseKey` (dist/struct.js, lines 58 and 86) finds the dotted-key separator with `ctx.s.indexO
Original source: https://github.com/advisories/GHSA-r4xh-jqrq-34v2