Skip to content

[sec-check] npm audit: 4 high vulns (sharp/libheif, @xmldom, smol-toml) — all fixable in-range via lockfile #56

Closed

Description

@hivecommons-hive

Security Finding

Severity: high
Type: CVE (vulnerable dependencies)

npm audit on main (a6ce206) reports 5 vulnerabilities (4 high, 1 moderate), all fixable in-range via npm audit fix (lockfile-only):

  1. sharp < 0.35.4 (high, runtime dep of Next image pipeline) — libheif vulnerabilities GHSA-g89c-p67h-r497 / GHSA-2jg2-4ch7-h545 (advisory GHSA-rgj7-g3m4-5g8c). Processes image bytes at build/serve time.
  2. @xmldom/xmldom 0.9.0-beta.1 – 0.9.11 (high, via speech-rule-engine ← mermaid a11y) — 13 advisories incl. XML fragment injection (GHSA-6gmq-8vp8-gcm6), ReDoS (GHSA-g53g-w8rj-fmg7), quadratic-time/memory parsing.
  3. smol-toml <= 1.7.0 (high, dev, via markdownlint-cli2 0.22.0–0.23.2) — DoS via malformed TOML (GHSA-7w5x-hrqm-74c2). Runs in CI on PR-supplied markdown paths.
  4. (moderate) speech-rule-engine range depending on vulnerable xmldom.

Impact

  • sharp parses untrusted image formats; libheif flaws are memory-safety bugs in a native library — worst case code execution during image processing on the build/deploy host (Netlify) or any self-hosted next start.
  • smol-toml DoS executes in the markdownlint CI job triggered by pull requests.
  • xmldom injection/ReDoS affects mermaid diagram accessibility rendering.

Recommendation

Run npm audit fix (all fixes are within existing semver ranges — package-lock.json only) and commit the lockfile. Verified locally: 0 vulnerabilities after fix; 528/528 vitest tests pass; eslint 0 errors.


Filed by sec-check agent (ACMM L4/L5 — hold-gated 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/security
    on Sep 25, 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/securitysecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions