Skip to content

Feature: Add CVE scanner to CI + security-only Renovate fast-track #1498

Closed

Description

@larryro

Context

Compliance baseline requires the manufacturer to ship security patches quickly, especially for internet-facing deployments. Current state:

  • Renovate is configured with a 30/60/90-day minimumReleaseAge cushion in .github/renovate.json — safe for stability but too slow for CVE patches.
  • No SAST / dependency-vulnerability scanner runs in CI.

Proposed change

  1. Add a Renovate package rule with matchUpdateTypes: ["security"] (or use vulnerabilityAlerts) with minimumReleaseAge: 0 and automerge: true for patch-level security updates only.
  2. Add a CI job running osv-scanner (or npm audit --audit-level=high) as a blocking step on pull_request and main.
  3. Document the security-update flow and tale upgrade behaviour in docs/security/.

Acceptance criteria

  • Security advisories open PRs within 24h of disclosure.
  • CI fails on known high/critical vulns.
  • Self-hosters can identify security-relevant releases from release notes.

Part of the security compliance baseline. See umbrella plan.

Activity

  1. added
    priority: high
    feat
    service: platform
    on Apr 13, 2026
  2. yannickmonney commented on May 31, 2026

    @yannickmonney
    Contributor

    Triaged — keeping open but re-scoping. A scanner already runs in CI: .github/workflows/security.yml has a Trivy job (vuln,secret,misconfig, HIGH/CRITICAL, SARIF upload, weekly schedule) plus bun audit. The gap is that both are non-blocking (exit-code: 0 / continue-on-error: true), and Renovate (.github/renovate.json) has the staged cushions but no security fast-track.

    Remaining work:

    1. Make a HIGH/CRITICAL finding fail CI (blocking gate).
    2. Add a Renovate security fast-track (vulnerabilityAlerts / matchUpdateTypes: ["security"]) that bypasses the cushion.

    Assigned to me.

  3. yannickmonney commented on Jun 1, 2026

    @yannickmonney
    Contributor

    Implemented the gate + Renovate fast-track in #1784. Running the gate against the current tree surfaced a pre-existing HIGH backlog (13 advisories, 0 CRITICAL), so the blocking gate ships at CRITICAL for now and ratchets to HIGH once these are cleared. HIGH remains visible (bun audit summary + Trivy SARIF).

    HIGH backlog to remediate before flipping the gate to HIGH

    Package Path(s) Advisory
    tar <7.5.7 @tale/ui › jsdom (dev/test) GHSA-34x7-hfp2-rc4v, -8qq5-rm4j-mr97, -83g3-92jg-28cx, -qffp-2rhf-9h96, -9ppj-qmqm-q256, -r6q2-hw4h-h46w
    lodash <=4.17.23 commitizen, dagre, json-diff-kit, swagger-ui-react, plop GHSA-r5fr-rjxr-66jc (_.template code injection)
    axios <1.16.0 swagger-ui-react GHSA-pjwm-pj3p-43mv, GHSA-35jp-ww65-95wh (proxy/MITM)
    picomatch <2.3.2 vite, vitest, chokidar, sucrase, plop, storybook, knip (transitive) GHSA-c2c7-rcm5-vvqj (ReDoS)
    xlsx <0.19.3 @tale/platform › xlsx (prod) GHSA-4r6h-8v6p-xvw6 (prototype pollution), GHSA-5pgg-2g8v-p4x9 (ReDoS)

    Remediation notes

    • picomatch / tar / lodash / axios are transitive under dev/build tooling — most resolve via a Renovate bump or a lockfile bun update; several of these dev deps (jsdom, vite, vitest, storybook) appear under --prod because they're declared as regular dependencies in their workspace, which is worth correcting separately.
    • xlsx (SheetJS) has no fixed version on npm — the upstream fix is distributed via the SheetJS CDN. This needs a deliberate decision (migrate to the CDN build, switch libraries, or accept + suppress with justification). It's the one genuine prod item.

    Once the table is cleared (fix or justified suppression), flip both gates from critical → high (bun audit --audit-level=high, Trivy severity: HIGH,CRITICAL).

  4. yannickmonney commented on Jun 1, 2026

    @yannickmonney
    Contributor

    Status update: the core of this shipped in #1784 (merged).

    • .github/workflows/security.yml now has a bun-audit job — a full-severity report to the job summary plus a blocking gate (bun audit --prod --audit-level=critical with pipefail) — and a trivy-fs job — informational HIGH+CRITICAL SARIF upload plus a separate blocking vuln-only CRITICAL gate (ignore-unfixed).
    • .github/renovate.json fast-tracks security updates: vulnerabilityAlerts with minimumReleaseAge: null, prCreation: "immediate", and a security label, plus osvVulnerabilityAlerts: true.
    • The security-update flow is documented in docs/.../security/advisories.md (en/de/fr).

    Keeping this open as the tracking issue for the remaining scope: ratcheting the blocking gate from CRITICAL → HIGH once the pre-existing HIGH advisories are cleared. The one genuine prod item is xlsx (SheetJS, pinned 0.18.5, used in convex/node_only/documents/internal_actions.ts), which currently has no fixed npm release — that needs a deliberate migrate/replace/suppress decision. The rest are transitive dev/build tooling.

  5. yannickmonney commented on Jun 2, 2026

    @yannickmonney
    Contributor

    Re-checked the current advisory state to see whether the gate can ratchet --audit-level=critical → high yet. Not yet — bun audit --prod --audit-level=high still reports prod-tree HIGH advisories, so flipping the gate would fail CI today:

    Advisory Package Fix available? Plan
    Prototype Pollution + ReDoS (GHSA-4r6h-8v6p-xvw6, GHSA-5pgg-2g8v-p4x9) xlsx <0.19.3 ❌ No fixed npm release (SheetJS ships off-registry) Migrate the two parse call-sites (convex/node_only/documents/internal_actions.ts XLSX.read, lib/utils/file-parsing.ts) off SheetJS, or pin the SheetJS-maintained build + dated .trivyignore with a documented compensating control (admin-only, size-limited, isolated Node action). The hard blocker.
    _.template code injection (GHSA-r5fr-rjxr-66jc) lodash ❌ No patched version (usage-pattern advisory) Locate the prod importer; confirm _.template is never fed untrusted input; suppress with rationale if confirmed safe.
    ReDoS via extglob (GHSA-c2c7-rcm5-vvqj) picomatch <2.3.2 (transitive) ✅ Fixed in 2.3.2 Workspace override forcing picomatch ≥2.3.2 (mostly dev chains: vite/vitest/storybook/knip/plop). Low-risk.
    otelCarrier inline-script (GHSA-2h32-95rg-cppp) @vitest/browser (dev) bump Dev-only; doesn't block the --prod gate but should clear with a vitest bump.

    Ratchet sequence: (1) picomatch override, (2) resolve/suppress lodash, (3) xlsx parse-path migration or scoped suppression + compensating control, (4) flip bun audit --prod --audit-level=critical → high and Trivy CRITICAL → HIGH,CRITICAL in .github/workflows/security.yml (one line each) and drop the "see #1498" comments.

    Most of (1)/(4) are mechanical; (2)/(3) are the real work and (3) needs spreadsheet-parse validation against a running stack. Leaving open as the tracked ratchet — it can't be a single safe PR while xlsx has no registry fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dependenciesfeatpriority: highsecurityservice: platform

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions