Skip to content

Security: esaueng/remus

SECURITY.md

Security Policy

Supported Versions

Report issues against main; fixes land there. Consumers also install the committed kernel and translator packages in crates/wasm/pkg and crates/wasm-io/pkg directly from Git. These directories are a distribution channel. Branch protection must require Changed kernel requires a new version. That check depends on package integrity and explicitly fails if integrity fails, is cancelled, or is skipped. Changes to these directories must pass both checks.

Scope

Remus is a library that parses untrusted input: STEP, IGES, STL, 3MF, OBJ, PLY, and glTF files may come from anywhere. The reports we care most about:

  • Panics, unbounded memory growth, or hangs triggered by crafted import files, especially anything that gets past the ImportLimits budgets.
  • Memory-safety issues (the workspace denies unsafe, so any would come through a dependency).
  • Supply-chain issues in the dependency tree or CI workflows.

Wrong geometry from valid input is a correctness bug, not a vulnerability — file a regular issue for those.

Reporting a Vulnerability

Use GitHub Security Advisories for private disclosure. Please do not open a public issue for anything security-sensitive.

Include:

  • Description of the vulnerability
  • Steps to reproduce (a crafted input file is ideal)
  • Potential impact
  • Suggested fix (if any)

Expect an initial response within 48 hours.

Supply Chain

In response to the 2025–2026 wave of npm and GitHub Actions supply-chain attacks (Shai-Hulud worm, chalk/debug compromise, tj-actions tag retag, prt-scan AI campaign), the build is configured to fail closed on the patterns those attacks exploited:

Defense Where What it blocks
All GitHub Actions pinned to commit SHA .github/workflows/*.yml Tag-retag attacks (tj-actions class).
OSV scan against Cargo.lock + package-lock.json (the check fails on PRs and merge-queue entries that introduce a vulnerability, and on main pushes and the weekly schedule for any detected vulnerability) .github/workflows/osv-scan.yml Known-CVE versions in either ecosystem. The check blocks a merge only while OSV Scan is a required status check, which is configured separately in GitHub.
Dependabot cooldown (7d default across cargo, npm, github-actions; 14d major for cargo and npm) .github/dependabot.yml Fresh malicious uploads.
Rebuild and compare changed committed WASM packages before the version gate passes .github/workflows/wasm-version.yml Committed binaries, JS glue, or package contracts that do not match source, from an honest PR. Not a boundary against a hostile PR (see below).
Only the package bot's refresh PRs may change crates/wasm*/pkg (package-source check run, published from default-branch code by the history privacy App) .github/workflows/package-source.yml Package bytes planted by any other PR, including a fork PR that also controls the build code. Blocks a merge only while package-source is a required check whose source is that App.

The package rebuild necessarily executes the PR's own build code (xtask, build.rs, proc macros) on the same runner. The integrity and reuse scripts run from the base commit, but a hostile PR that changes build code can still tamper with that runner or make its rebuild reproduce planted bytes, so the rebuild comparison is a consistency check. The boundary is package-source, which passes a package change only when the PR comes from remus-package-bot[bot] on a codex/wasm-refresh-* branch of this repository, whose packages publish.yml builds from protected main. It always runs from the default branch (pull_request_target, and workflow_run after the credential-free Package source request merge-group workflow), never executes PR or merge-group code, and publishes with an App key held in the history-privacy environment, which PR and merge-group workflows cannot use. In the merge queue it checks the queue commit's own diff, which is exactly what the PR adds to main. Pin the required check's source to that App: a statuses: write or checks: write token from any PR-controlled workflow could otherwise publish a lookalike. Accounts with write access are not contained by it (they can also bypass protection as admins), and changes to build tooling (xtask/, **/build.rs, .cargo/, scripts/) still need a human review; .github/CODEOWNERS routes those paths to the maintainer.

Direct install-time cooldown via .npmrc min-release-age is not enabled here: npm bundled with Node 24 is 11.6.1, which silently ignores the field (added in npm 11.10). Add it once Node ships a newer npm.

There aren't any published security advisories