chore(deps): override smol-toml to ^1.8.0 to clear the audit gate - #394
Conversation
GHSA-7w5x-hrqm-74c2 (high, denial of service via malformed TOML) hits smol-toml <=1.7.0. markdownlint-cli2 0.23.2 — the current release — depends on exactly 1.7.0, so no lockfile refresh reaches the fix and `npm audit fix --force` would downgrade the linter to 0.21.0, a breaking change to clear a dev-only advisory. An override pins 1.8.0 instead. Same major, security patch only, and markdownlint runs in both the pre-commit hook and CI, so a real incompatibility would surface immediately rather than silently. This is failing `build (20.x/22.x/24.x)` on every open PR, so it lands on its own rather than inside a feature branch. Claude-Session: https://claude.ai/code/session_01THRG6UFPUdMSARgJLcGf9a
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #394 +/- ##
=======================================
Coverage 89.52% 89.52%
=======================================
Files 11 11
Lines 1422 1422
Branches 432 432
=======================================
Hits 1273 1273
Misses 63 63
Partials 86 86 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Review —
|
GHSA-7w5x-hrqm-74c2 (high, denial of service via malformed TOML documents) affects
smol-toml <=1.7.0.markdownlint-cli2@0.23.2— the current release — depends on exactly1.7.0, so no lockfile refresh reaches the fix, andnpm audit fix --forcewould downgrade the linter to0.21.0: a breaking change to a dev tool to clear a dev-only advisory.An
overridesentry pins1.8.0instead. Same major, security patch only. markdownlint runs in both the pre-commit hook and CI, so a real incompatibility would surface immediately rather than silently.Why on its own
This is currently failing
build (20.x),build (22.x)andbuild (24.x)on every open PR (#387, #388, #389, #391, #392). It has nothing to do with any of them, so it lands separately rather than being smuggled into a feature branch. Merging this first and rebasing the others turns five red PRs green.Verification
https://claude.ai/code/session_01THRG6UFPUdMSARgJLcGf9a