Skip to content

[sec-check] Dev-dependency advisories: js-yaml merge-key CPU DoS, markdown-it quadratic linkify #133

Closed

Description

@hivecommons-hive

Security Finding

Severity: medium (dev-only)
Type: CVE / vulnerable dependency versions

npm audit reports two moderate advisories in the dev-dependency tree (production tree is clean):

  • js-yaml ≥5.0.0 ≤5.4.0 — maxTotalMergeKeys does not limit CPU use for empty merge sources (GHSA-r3ph-w7gj-g6xm)
  • markdown-it <14.3.1 — linkify: true has two quadratic paths; a few hundred KB of markdown blocks the event loop for tens of seconds (GHSA-253c-mchw-3w2r)

Both are transitive dev dependencies with fixed versions available within existing semver ranges.

Impact

Denial-of-service class (CPU exhaustion) in tooling that parses YAML or markdown. Confined to dev/build tooling — npm audit --omit=dev reports 0 vulnerabilities — so exposure is CI and contributor machines processing untrusted input, not the deployed site.

Recommendation

Lockfile-only bump via npm audit fix (js-yaml → patched 5.x, markdown-it → 14.3.1). Verified locally: audit clean, full vitest suite (726 tests) passes.


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


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

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

Activity

  1. added
    security
    agent/sec-check
    hive/covered-by-pr
    on Sep 29, 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-checkhive/covered-by-prsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions