Skip to content

fix(security/high/): update dependency smol-toml to v1.7.1 [security] - #194

Merged
domasx2 merged 1 commit into
mainfrom
renovate/security-smol-toml
Sep 22, 2026
Merged

domasx2 merged 1 commit into
mainfrom
renovate/security-smol-toml

Conversation

@renovate-sh-app

@renovate-sh-app renovate-sh-app Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
smol-toml 1.6.11.7.1 age confidence

smol-toml: Denial of Service via malformed TOML documents

CVE-2026-85730 / GHSA-7w5x-hrqm-74c2

More information

Details

Summary

parse() can be forced into an infinite loop when a value inside an array or inline table is followed by a comment that has no trailing newline (i.e. the comment "ends" the document).

The library fails to exit an internal loop when attempting to find the end of the structure, resetting its cursor to the beginning of the string instead. This causes the parser to indefinitely hang, compromising the availability of the service.

Proof of concept
import { parse } from 'smol-toml'
parse('a=[1 #')   // never returns; CPU pinned at 100%
Impact

Applications which parse arbitrary TOML documents can suffer major availability issues if they receive malicious input. This issue is particularly severe for these use-cases, and it is strongly advised to upgrade to an up-to-date version of the library as soon as possible.

If your use-case does not involve parsing arbitrary TOML documents from untrusted sources, the impact is much lower in practice, although it's still advisable to update to version 1.7.1.

Patches

Version 1.7.1 properly breaks out of the loop in these situations and throws the expected TomlError.

Workarounds

None that don't involve refactors. Update the library as soon as possible if your use-case involves parsing arbitrary TOML documents from untrusted sources.

Reported By : Ravindu Lakmina Munaweera

Severity

  • CVSS Score: 8.2 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


smol-toml: Denial of Service via malformed TOML documents

CVE-2026-85730 / GHSA-7w5x-hrqm-74c2

More information

Details

Summary

parse() can be forced into an infinite loop when a value inside an array or inline table is followed by a comment that has no trailing newline (i.e. the comment "ends" the document).

The library fails to exit an internal loop when attempting to find the end of the structure, resetting its cursor to the beginning of the string instead. This causes the parser to indefinitely hang, compromising the availability of the service.

Proof of concept
import { parse } from 'smol-toml'
parse('a=[1 #')   // never returns; CPU pinned at 100%
Impact

Applications which parse arbitrary TOML documents can suffer major availability issues if they receive malicious input. This issue is particularly severe for these use-cases, and it is strongly advised to upgrade to an up-to-date version of the library as soon as possible.

If your use-case does not involve parsing arbitrary TOML documents from untrusted sources, the impact is much lower in practice, although it's still advisable to update to version 1.7.1.

Patches

Version 1.7.1 properly breaks out of the loop in these situations and throws the expected TomlError.

Workarounds

None that don't involve refactors. Update the library as soon as possible if your use-case involves parsing arbitrary TOML documents from untrusted sources.

Reported By : Ravindu Lakmina Munaweera

Severity

  • CVSS Score: 8.2 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • 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.


  • If you want to rebase/retry this PR, check this box

Need help?

You can ask for more help in the following Slack channel: #proj-renovate-self-hosted. In that channel you can also find ADR and FAQ docs in the Resources section.

| datasource | package   | from  | to    |
| ---------- | --------- | ----- | ----- |
| npm        | smol-toml | 1.6.1 | 1.7.1 |


Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>

@domasx2 domasx2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security bump, green CI. Approving as part of the RUM CVE SLO cleanup.

Reply posted by Claude on Domas's behalf.

@domasx2
domasx2 merged commit f951b07 into main Sep 22, 2026
18 checks passed
@domasx2
domasx2 deleted the renovate/security-smol-toml branch September 22, 2026 07:41
domasx2 added a commit that referenced this pull request Sep 22, 2026
…y CVEs

The packages are transitive-only, so Renovate cannot open security PRs for
them. Pin them through the existing resolutions block instead.

Three traps this works around:

- Yarn Berry applies a ranged resolution key only when the range matches the
  requested descriptor exactly, so brace-expansion is pinned per descriptor
  rather than per major.
- nx pins brace-expansion and smol-toml to exact vulnerable versions, which
  bypasses the unscoped resolutions, hence the nx/* entries.
- postcss 8.5.18 fixes CVE-2026-73646 but is still hit by CVE-2026-69153, an
  incomplete-fix follow-up, so it goes to 8.5.23.

Also closes the residuals left by #193 and #194: both CVEs also affect an
older major line in the tree (js-yaml 3.x, smol-toml via nx) that those
PRs did not cover.

Every resolved version is verified against the GitHub advisory database.
domasx2 added a commit that referenced this pull request Sep 22, 2026
…y CVEs (#198)

The packages are transitive-only, so Renovate cannot open security PRs for
them. Pin them through the existing resolutions block instead.

Three traps this works around:

- Yarn Berry applies a ranged resolution key only when the range matches the
  requested descriptor exactly, so brace-expansion is pinned per descriptor
  rather than per major.
- nx pins brace-expansion and smol-toml to exact vulnerable versions, which
  bypasses the unscoped resolutions, hence the nx/* entries.
- postcss 8.5.18 fixes CVE-2026-73646 but is still hit by CVE-2026-69153, an
  incomplete-fix follow-up, so it goes to 8.5.23.

Also closes the residuals left by #193 and #194: both CVEs also affect an
older major line in the tree (js-yaml 3.x, smol-toml via nx) that those
PRs did not cover.

Every resolved version is verified against the GitHub advisory database.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant