Skip to content

chore: bump dependencies across all components to clear known vulnerabilities - #145

Merged
scarmuega merged 8 commits into
mainfrom
chore/security-dependency-bump
Oct 31, 2026
Merged

scarmuega merged 8 commits into
mainfrom
chore/security-dependency-bump

Conversation

@scarmuega

Copy link
Copy Markdown
Member

A routine dependency refresh across every Asteria component, to pick up the latest security patches. Upgrades are security-driven: every patch and minor bump, plus the majors that an advisory fix needs. Each component is a separate commit.

Advisories before and after

Component Before After
backend (Rust) ~20 crates with advisories (rustls, rustls-webpki, openssl, quinn-proto, h2, bytes, time, tokio, rand, …); dotenv unmaintained paste unmaintained notice only (via pallas)
visualizer (Rust/bevy) bytes, crossbeam-channel, tracing-subscriber, adler, event-listener, ruzstd, … ruzstd 0.5 (pinned by bevy_render 0.13); paste, ttf-parser unmaintained notices
frontend (npm) 2 critical, 9 high (15 total) 3 moderate (glob/minimatch via next-tx3, no fix released)
docs (npm) 1 critical, 22 high (33 total) 3 high, all the one zod advisory (see below); low/moderate via nextra's mermaid/katex/ts-morph
sdk/blaze (npm) 3 critical, 35 high (52 total) 3 moderate (glob via tsup's sucrase, build-time only)
indexer (.NET 8) Refit (critical), Npgsql, System.Text.Json, Caching.Memory (high) none (dotnet list package --vulnerable --include-transitive)
Docker base images node 18 and node 20 (both EOL), ubuntu 20.04 (EOL) node 24 LTS, ubuntu 24.04

Notable changes

  • backend: rocket 0.5.2, async-graphql 7.2, blockfrost 1.3, reqwest 0.13 (to match blockfrost 1.3, which pulls 0.13), tokio 1.54, and pallas 1.4.0 stable (from 1.0.0-alpha.5). dotenv is replaced by its maintained fork dotenvy. The root workspace now excludes visualizer, which could not resolve its own lockfile otherwise.
  • frontend: next 15.5.28 (the patched 15.x backport line) and next-mdx-remote 6. postcss is overridden so next's pinned 8.4.31 resolves to the patched release.
  • docs: migrated from nextra 2 to nextra 4 (next 14 → 15.5.28), because every nextra 2 release carries the advisories. Content moves from pages/ to content/, an app-router layout replaces theme.config.jsx and _app.js, Tailwind moves to v4 (nextra 4 ships v4 CSS), and search is now built by pagefind after next build.
    • The gathering-fuel, mining-asteria and moving-ship guides were bare TypeScript with no code fence, which recent MDX versions reject. They are now fenced ts blocks so the docs build cleanly.
    • nextra-theme-docs 4.6.1 (the latest release) validates layout props without children, and zod 4.4+ rejects that. zod is therefore held at 4.3.6, which keeps GHSA-mrhx-c7xc-m3w5 in the audit. It can't be reached here: zod only validates the static theme config at build time and never sees request data.
  • sdk/blaze: moved to blaze sdk 0.3.3 / core 0.10.1. Every blaze release that clears the advisories drops the Lucid-style Data/Constr API, so the datum schemas move to @blaze-cardano/data (TypeBox objects with constructor 0), Data.to/Data.from become serialize/parse, and redeemers are built by a small constr helper.
    • Old and new encodings were compared on samples of every datum schema and redeemer. The CBOR is byte-identical and parse round-trips.
    • Bug fix surfaced by the stricter types: mineAsteria read max_asteria_mining from the Asteria UTxO datum, where the field doesn't exist, so BigInt(NaN) threw. It now reads the field from the Asteria script reference datum.
  • indexer: OpenApi and EF Core Design 8.0.33 and Swashbuckle 6.9.0, plus explicit pins for the patched transitive packages (Refit 7.2.22, Npgsql EF provider 8.0.11, System.Text.Json 8.0.6, Caching.Memory 8.0.1). Still targets net8.0.
  • frontend image: trix changed its release assets from .tar.xz to .tar.gz in v0.27, so the latest-release download no longer resolves. TRIX_VERSION is now pinned to v0.18.0, the release that was current when the last image built (2025-10-31).
  • CI (Tests workflow): brought in line with the current onchain setup. It pinned aiken v1.0.24-alpha, which predates stdlib v2, and ran at the repo root rather than in the Aiken project. It now pins v1.1.7 (the compiler named in plutus.json) and runs in onchain/src. The validators are untouched, so script hashes don't change.

Verification

  • backend: cargo build --release passes. visualizer: cargo check passes. Both lockfiles were re-scanned against OSV; the results are in the table above.
  • frontend, docs, sdk/blaze: npm ci + npm run build pass. sdk/blaze: tsc --noEmit, including the examples, passes. docs: the production build was served locally and every page returns 200; screenshots of the home page, the introduction and a guide look right.
  • indexer: the image builds, and the vulnerability scan is clean.
  • Docker images: backend, frontend, indexer and docs all build for linux/amd64.
  • onchain: with aiken 1.1.21, all 91 tests pass. -D and fmt --check flag newer-compiler lints only (named-field destructuring, field punning); this PR's CI run is the v1.1.7 check.

Out of scope (follow-ups)

  • .NET 8 support ends 2026-11-10; moving the indexer to net10.0 deserves its own PR.
  • Upgrading bevy from 0.13 (clears ruzstd) would mean rewriting the visualizer.
  • The offchain/ Deno scripts import lucid 0.10.7 by URL, have no lockfile, and lucid is deprecated.
  • frontend/tx3/bindings is generated code.
  • docker/Dockerfile.frontend hardcodes TRP API keys in ENV.

🤖 Generated with Claude Code

scarmuega and others added 8 commits October 31, 2026 15:52
Move rocket, async-graphql, blockfrost, reqwest (0.13, matching
blockfrost 1.3), tokio and pallas (1.4.0 stable) forward and refresh the
lockfile. Replace the unmaintained dotenv with dotenvy. Only the
unmaintained paste notice (via pallas) remains.

Exclude visualizer from the root workspace so it resolves its own
lockfile again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Semver-compatible update clearing the bytes, crossbeam-channel,
tracing-subscriber, adler and event-listener advisories. ruzstd 0.5 is
pinned by bevy_render 0.13 and stays until a bevy upgrade.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
next 15.5.28 (the patched 15.x backport line) clears the critical RCE and
the middleware-bypass, SSRF and DoS advisories. next-mdx-remote moves to
6, and postcss is overridden so next's pinned 8.4.31 resolves to the
patched release. Transitive fixes come from npm audit fix. Three
moderate advisories remain in glob/minimatch via next-tx3, with no fix
released.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nextra 2 and next 14 carry critical and high advisories, and their fixes
need nextra 4. The content moves to the nextra 4 content directory with
an app router layout replacing theme.config.jsx and _app.js, and _meta
files become modules. Tailwind moves to v4 because nextra 4 ships v4
CSS. Search is now built by pagefind after next build.

The gathering-fuel, mining-asteria and moving-ship guides held bare
TypeScript, which recent MDX versions reject. They are now fenced as ts
code blocks so the docs build cleanly.

nextra-theme-docs 4.6.1 validates layout props without children, which
zod 4.4+ rejects, so zod is held at 4.3.6 for it. The zod advisory
(GHSA-mrhx-c7xc-m3w5, oversized arrays) is unreachable here: zod only
validates the static theme config at build time. The base image moves
from node 18 (EOL) to node 24 with npm ci.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
blaze core up to 0.7.1 pulls @cardano-sdk/core with the ip-address
advisories, and the lockfile carried tar, pbkdf2 and sha.js criticals.
Every blaze release that clears them drops the Lucid-style Data and
Constr API, so the datum schemas move to @blaze-cardano/data (TypeBox
objects with constructor 0), Data.to/from become serialize/parse, and
redeemers are built by a small constr helper.

Old and new encodings were compared on a sample of every datum schema
and redeemer: the CBOR is identical and parse round-trips. The stricter
types surfaced a bug in mineAsteria: it read max_asteria_mining from
the Asteria UTxO datum, where the field does not exist, so BigInt(NaN)
threw. It now reads it from the Asteria script reference datum.

tsup, dotenv, rxjs and typescript move within their majors; @types/node
is now declared instead of arriving transitively. Three moderate glob
advisories remain via tsup's sucrase, build-time only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bump Microsoft.AspNetCore.OpenApi and EntityFrameworkCore.Design to
8.0.33 and Swashbuckle to 6.9.0. Pin patched versions of the
transitive packages flagged by dotnet list package --vulnerable:
Refit 7.2.22 (critical CRLF injection), Npgsql via the EF provider
8.0.11, System.Text.Json 8.0.6 and Microsoft.Extensions.Caching.Memory
8.0.1. The scan now reports no vulnerable packages. The target stays
net8.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring the Tests workflow in line with the current onchain setup: it
pinned aiken v1.0.24-alpha, which predates stdlib v2, and ran at the
repository root rather than in the Aiken project. Pin v1.1.7 (the compiler named in plutus.json), run in
onchain/src, and move to actions/checkout v4 and setup-aiken v1. The
validators are untouched, so script hashes do not change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The build stage moves from ubuntu 20.04 to 24.04, where the python and
python-openssl packages become python3. The runtime moves from node 20
to node 24 and installs with npm ci.

trix changed its release assets from .tar.xz to .tar.gz in v0.27, so
the latest-release URL no longer resolves. Pin
TRIX_VERSION to v0.18.0, the release current when the last frontend
image built (2025-10-31), so codegen does not drift.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@scarmuega
scarmuega merged commit fc72b06 into main Oct 31, 2026
1 check passed
@scarmuega
scarmuega deleted the chore/security-dependency-bump branch October 31, 2026 20:48
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.

1 participant