Skip to content

feat(deps): ratchet CVE gates from CRITICAL to HIGH - #1856

Merged
yannickmonney merged 1 commit into
mainfrom
feat/cve-gate-ratchet-high
Jun 11, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
feat/cve-gate-ratchet-high

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

What / why

Part of #1803 (security epic) · Closes #1498. Stacked on #1855.

With the HIGH backlog cleared by the two PRs below this one, both blocking CI security gates ratchet from CRITICAL to HIGH, completing the remaining scope of #1498:

  • .github/workflows/security.yml: bun audit gate --audit-level=critical → --audit-level=high; Trivy vulnerability gate severity: CRITICAL → HIGH,CRITICAL. Stale "HIGH backlog / see Feature: Add CVE scanner to CI + security-only Renovate fast-track #1498" comment blocks rewritten.
  • Docs (docs/{en,de,fr}/self-hosted/operate/security/advisories.md): the fast-track paragraph now says CI blocks any merge introducing a known high or critical advisory.

The Trivy gate scans every lockfile (bun.lock + services/*/uv.lock) with no prod/dev split, so the flip also required clearing the Python HIGHs it would now see:

  • services/rag/uv.lock: urllib3 2.6.3 → 2.7.0 (GHSA-mf9v-mfxr-j63j HIGH, GHSA-qccp-gfcp-xxvc HIGH), idna 3.11 → 3.18.
  • services/crawler/uv.lock: urllib3 2.7.0, cryptography 46.0.3 → 48.0.1 (CVE-2026-26007 HIGH), pyopenssl 25.3.0 → 26.2.0 (GHSA-5pwr-322w-8jr4 HIGH), aiohttp 3.14.1, requests 2.34.2, idna 3.18, pygments 2.20.0.
  • lxml CVE-2026-41066 (XXE, HIGH, fixed in 6.1.0) cannot be taken: crawl4ai==0.8.6 pins lxml~=5.3. It gets a dated, path-scoped accept-risk entry in .trivyignore.yaml (repo has no iterparse/ETCompatXMLParser call sites; crawler runs isolated), listed under its CVE/GHSA/PYSEC aliases. Revisit on each crawl4ai release.
  • starlette PYSEC-2026-161 remains: MODERATE (below the gate), and the fix is a major bump constrained by fastapi.

Decision-gate recommendations baked in

  • uv.lock HIGHs: fixed via lock bumps where constraints allow; suppressed with a dated entry only where upstream pins block the fix (lxml) — per the plan's ratchet guidance.
  • Renovate security automerge (the one unimplemented acceptance criterion from the original issue body): deliberately not enabled — security PRs stay human-merged; patch-only automerge is not directly expressible for vulnerabilityAlerts, and the stricter gates now block regressions at merge time. Veto at review if you want it enabled.

Verification

Performed:

  • bun audit --prod --audit-level=high exit 0 (the exact new gate command).

  • pip-audit over both exported uv.locks (dev-inclusive): only starlette (MODERATE) and the suppressed lxml finding remain; severities cross-checked against the GHSA records.

  • RAG test suite (318 passed) and crawler test suite (489 passed) on the bumped locks.

  • Docs: bun run --filter @tale/docs lint + test (139 tests) green; workflow + ignore-file YAML parse.

  • bun run check green at this branch.

  • Flipped gates executed for real on this branch via workflow_dispatch: Security run 27313180665 — Bun audit (HIGH gate) and Trivy filesystem scan (HIGH,CRITICAL gate over bun.lock + services/*/uv.lock with the lxml suppression) both pass.

Note: security.yml only auto-triggers on PRs targeting main, so this stacked PR shows no Security check until it retargets after #1855 merges — the dispatched run above covers that gap.

Pre-PR checklist

  • Ran bun run check (format, lint, typecheck, all tests).
  • No hand-rolled skeletons — N/A.
  • Updated services/platform/messages/{en,de,fr}.json — N/A.
  • Updated /docs/{en,de,fr}/ for every user-visible change (advisories page, all three locales).
  • Touched docs page keeps its real opening and closing (one-sentence wording change inside an existing paragraph).
  • Ran bun run --filter @tale/docs lint and bun run --filter @tale/docs test.
  • Updated READMEs — N/A.

Base automatically changed from feat/xlsx-sheetjs-cdn-migration to fix/cve-high-backlog-lockfile June 10, 2026 23:34
Base automatically changed from fix/cve-high-backlog-lockfile to main June 11, 2026 00:18
With the HIGH backlog cleared (transitive lockfile fixes, lodash/tmp
overrides, xlsx CDN migration), flip both blocking gates in
.github/workflows/security.yml as tracked in #1498:

- bun audit gate: --audit-level=critical -> high
- Trivy vulnerability gate: severity CRITICAL -> HIGH,CRITICAL

The Trivy gate scans every lockfile (bun.lock + services/*/uv.lock)
with no prod/dev split, so the flip also required clearing the Python
HIGH advisories it would now see:

- services/rag/uv.lock: urllib3 2.6.3 -> 2.7.0 (GHSA-mf9v-mfxr-j63j,
  GHSA-qccp-gfcp-xxvc), idna 3.11 -> 3.18.
- services/crawler/uv.lock: urllib3 2.7.0, cryptography 46.0.3 ->
  48.0.1 (CVE-2026-26007), pyopenssl 25.3.0 -> 26.2.0
  (GHSA-5pwr-322w-8jr4), aiohttp 3.14.1, requests 2.34.2, idna 3.18,
  pygments 2.20.0.
- lxml CVE-2026-41066 (XXE, fixed in 6.1.0) stays: crawl4ai==0.8.6
  pins lxml~=5.3, so it gets a dated, path-scoped accept-risk entry in
  .trivyignore.yaml (no iterparse/ETCompatXMLParser call sites in the
  repo).

starlette PYSEC-2026-161 remains (MODERATE — below the gate; fix is a
major bump constrained by fastapi).

Docs (en/de/fr) now state the gate blocks high or critical advisories.
RAG (318) and crawler (489) test suites pass on the bumped locks.
@yannickmonney
yannickmonney force-pushed the feat/cve-gate-ratchet-high branch from 3ed9696 to 35ca331 Compare June 11, 2026 00:45
@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@yannickmonney, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 45 minutes and 51 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: e14a30fb-743f-4b53-9d2c-44dc5c4d4294

📥 Commits

Reviewing files that changed from the base of the PR and between 7d9260c and 35ca331.

⛔ Files ignored due to path filters (2)
  • services/crawler/uv.lock is excluded by !**/*.lock
  • services/rag/uv.lock is excluded by !**/*.lock
📒 Files selected for processing (6)
  • .github/workflows/security.yml
  • .trivyignore.yaml
  • docs/de/self-hosted/operate/security/advisories.md
  • docs/en/self-hosted/operate/security/advisories.md
  • docs/fr/self-hosted/operate/security/advisories.md
  • services/crawler/pyproject.toml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/cve-gate-ratchet-high

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@yannickmonney
yannickmonney merged commit eab5904 into main Jun 11, 2026
32 checks passed
@yannickmonney
yannickmonney deleted the feat/cve-gate-ratchet-high branch June 11, 2026 07:53
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.

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

1 participant