Skip to content

[sec-check] smol-toml 1.8.0 pinned via markdownlint-cli2 — GHSA-r4xh-jqrq-34v2 (quadratic parse), fix via overrides #306

Closed

Description

@hivecommons-hive

Security Finding

Severity: low
Type: CVE (dependency)

package-lock.json resolves smol-toml to 1.8.0, which is in the vulnerable range of GHSA-r4xh-jqrq-34v2 ("Quadratic-time parse() from parseKey rescanning to end of document on each key line", published 2026-10-05, medium). It is a transitive, dev-only dependency: [email protected] pins smol-toml exactly to 1.8.0, so the patched release (1.9.0+, currently 1.9.1) is not reachable by a plain npm update.

The npm audit CI gate runs with --omit=dev --level=high, so this advisory is invisible to CI and will keep appearing in local npm audit runs (currently the only moderate entry) until it is addressed.

Impact

Low. smol-toml is only used by markdownlint-cli2 to read .markdownlint-cli2.toml-style config files during npm run lint:md; the docs site does not parse TOML at build or runtime, and the config input is repository-controlled. The exposure is a CPU-exhaustion DoS of the lint step from a crafted config file — effectively only reachable by someone who can already commit to the repo.

Recommendation

Add a package.json overrides entry — the same mechanism this repo already uses for brace-expansion, dompurify, lodash-es, katex, etc.:

"smol-toml": ">=1.9.0"

and regenerate the lockfile. Verified locally: lockfile resolves to [email protected], npm run lint:md passes (76 files, 0 issues), npm audit moderate count drops 1 → 0. No change to the remaining braces advisory, which has no patched release and is already acknowledged in .github/npm-audit-exceptions.json.


Filed by sec-check agent (ACMM L6 — full mode)


🐝 Hive Agent: security | Instance: hosted-available-oke-11-placeholder-r05x | SHA: 8b6427d

— hive: agent=sec-check backend=copilot model=claude-fable-5.1 copilot=1.0.88

Activity

  1. added
    security
    agent/sec-check
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/sec-checksecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions