deps: update dependency smol-toml to v1.6.1 [security]#71
Merged
Conversation
| datasource | package | from | to | | ---------- | --------- | ----- | ----- | | npm | smol-toml | 1.4.1 | 1.6.1 |
53b37f3 to
1796b27
Compare
Mogyuchi
approved these changes
Apr 1, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.4.1→1.6.1GitHub Vulnerability Alerts
GHSA-v3rj-xjv7-4jmq
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.
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.
Proof of concept
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.
Due to the design of most JavaScript runtimes, the uncontrolled recursion does not lead to excessive memory usage and the execution is quickly aborted.
As a reminder, it is strongly advised when working with untrusted user input to expect errors to occur and to appropriately catch them.
Patches
Version 1.6.1 uses a different approach for parsing comments, which no longer involves recursion.
Workarounds
Wrap all invocations of
parseandstringifyin a try/catch block when dealing with untrusted user input.Release Notes
squirrelchat/smol-toml (smol-toml)
v1.6.1Compare Source
This release addresses a minor security vulnerability where an attacker-controlled TOML document can exploit an unrestricted recustion and cause a stack overflow error with a document that contains thousands of sucessive commented lines. Security advisory: GHSA-v3rj-xjv7-4jmq
v1.6.0Compare Source
As of this version, smol-toml now supports the newly released TOML 1.1.0 specification!
Highlights
Multiline inline tables
TOML 1.1.0 now allows inline tables to have newlines, as well as trailing commas.
Omitting seconds in datetime and time
TOML 1.1.0 renders the seconds component of time elements optional.
New string escapes
Strings now support 2 additional escape sequences:
\xHHfor code points between 0 and 255\efor the escape character (U+001B)What's Changed
Full Changelog: squirrelchat/smol-toml@v1.5.2...v1.6.0
v1.5.2Compare Source
Hot fix for v1.5.1... 🙃
What's Changed
Full Changelog: squirrelchat/smol-toml@v1.5.1...v1.5.2
v1.5.1Compare Source
Smol fix that makes newlines actually consistent when stringifying objects to TOML.
What's Changed
Full Changelog: squirrelchat/smol-toml@v1.5.0...v1.5.1
v1.5.0Compare Source
This version improves the TOML output of the library when stringifying objects, courtesy of the folks over at Cloudflare.
Most notably, the lib no longer emits unnecessary table headers, and doesn't add an empty line between successive table headers anymore:
What's Changed
New Contributors
Full Changelog: squirrelchat/smol-toml@v1.4.2...v1.5.0
v1.4.2Compare Source
A smol fix to better handle strings with many successive backslash characters.
What's Changed
fix: string escape detection in util.ts by @cyyynthia
Full Changelog: squirrelchat/smol-toml@v1.4.1...v1.4.2
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.