Impact
The parser uses a falsy‑based existence check that skips duplicate key handling when the first value is a falsy primitive. An attacker can supply data that overwrites a previously defined false, 0, or empty string entry with an object, turning a boolean flag meant to deny certain actions into a truthy value. This structural type confusion violates the TOML specification, which requires duplicate keys to be flagged as an error, and enables unintended behavior such as bypassing user bans, deleting content, or enabling public mode.
Affected Systems
sunnyadn:js-toml versions prior to 1.1.2, including the 1.x release series.
Risk and Exploitability
The CVSS score of 5.3 indicates moderate severity. No EPSS score is available and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires control over the TOML input that the application parses; when configuration files are sourced from an untrusted origin this could occur remotely. The most likely attack vector is through configuration or data files processed by the parser, and the impact is confined to the application’s logic that evaluates the manipulated flag. No denial‑of‑service or code‑execution outcomes are documented.
OpenCVE Enrichment
Github GHSA