Skip to content

Override smol-toml past GHSA-7w5x-hrqm-74c2 - #2802

Merged
chalin merged 4 commits into
docsydev:mainfrom
chalin:chalin-m24-smol-toml-override-2026-0909
Sep 10, 2026
Merged

Override smol-toml past GHSA-7w5x-hrqm-74c2#2802
chalin merged 4 commits into
docsydev:mainfrom
chalin:chalin-m24-smol-toml-override-2026-0909

Conversation

@chalin

@chalin chalin commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator
  • Restores PR builds: the npm-audit gate rejects GHSA-7w5x-hrqm-74c2, reached through markdownlint-cli2's exact pin
    • Bumps rather than accepting the advisory: a patched release exists
    • Exposure: dev-only lint tool parsing this repo's own committed config
  • Overrides at the root rather than waiting on a parent bump: markdownlint-cli2 has no newer release for Renovate to pick up
  • Extends the reviewed-overrides check to the gaps npm ci leaves: every security override, both locks, every hoisted or nested copy, the theme manifest
  • Scope:
    • Root smol-toml override and lock refresh
    • Reviewed-overrides check: both overrides, both locks and the theme manifest, every copy, complete fixed range
  • Out of scope:
    • Upstream nudge to markdownlint-cli2: its main already carries the bump
    • npm-audit gate hardening and Hugo-binary acquisition: tracked separately
    • Pre-existing header comment and assert-message wording elsewhere in the test file: follow-up with the file's next touch

- Unblocks every PR's `build` job: the npm-audit gate rejects the high-severity smol-toml DoS advisory (published 2026-09-09) reached via markdownlint-cli2's exact 1.7.0 pin; fixed 1.7.1+ exists, so bump rather than accept
- Root override resolves the lock to 1.8.0 (29 days old, past the cooldown); markdownlint-cli2 has no newer release, so Renovate can't remediate
- Supply-chain audit's reviewed-overrides check generalized to a table, one row per security override
@chalin chalin added this to the 0.18.0 milestone Sep 9, 2026
…ull range

- Scans every lock node for an overridden package, not only the hoisted one, so a vulnerable copy left under the parent's node_modules goes red
- smol-toml's fixed-version pattern now spans the whole ^1.7.1 range instead of a truncated minor window
- Comment and assert messages trimmed to what the code doesn't say
…sions

- Covers the theme's standalone lock, which the root override doesn't reach
- Anchors the version patterns, so prereleases fail and minors of any width pass
…anifest

- Comment named the check's value as pinning the lock, which npm ci already validates on the hoisted path; it now names the gaps the check closes
- Rejects overrides in theme/package.json, the one manifest root npm ci never reads
- Fails with a labeled assertion, not a TypeError, when a parent isn't hoisted
@chalin
chalin merged commit 5c907aa into docsydev:main Sep 10, 2026
7 checks passed
@chalin
chalin deleted the chalin-m24-smol-toml-override-2026-0909 branch September 10, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant