Skip to content

fix(security): clear Trivy findings and cargo-audit advisory - #24

Merged
todie merged 5 commits into
mainfrom
fix/security-scans
Nov 11, 2026
Merged

todie merged 5 commits into
mainfrom
fix/security-scans

Conversation

@todie

@todie todie commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Refs #15. Stacked on #21 (needs its apt mirror and rusqlite fixes for CI to build the image); the first three commits are #21's and drop out when it lands and this is rebased.

Cargo Audit

RUSTSEC-2024-0437 (protobuf 2.28 via prometheus 0.13). deny.toml already ignores it with a rationale (reach-supervisor only exports metrics). cargo audit --ignore RUSTSEC-2024-0437 applies the same decision to the audit job. Not verified locally (cargo-audit not installed here); proven by the Security workflow on this PR.

Trivy

Scanned the image built from this branch with aquasec/trivy run as a container, same flags as the workflow (CRITICAL,HIGH, no --ignore-unfixed):

  • before: 13 HIGH, all Node packages (npm's bundled brace-expansion, pacote, picomatch, ip-address, sigstore, and sharp inside computer-use-mcp), all with fixes available.
  • after: 0 findings, exit 0.

Change: npm install -g npm@latest computer-use-mcp, then update sharp inside computer-use-mcp. Note npm@latest and sharp@latest are unpinned, so a future advisory can reappear; pinning them is a follow-up.

Important: the Security workflow is disabled

gh workflow list --all shows Security disabled_inactivity. GitHub auto-disabled it, so it did not run on this PR and the Cargo Audit and Trivy jobs above are not proven by CI. Re-enable with gh workflow enable Security (repo admin) to run them. Trivy was verified locally against the built image (0 HIGH/CRITICAL); cargo audit was not run (not installed here), but cargo deny check advisories passes on the same RustSec database.

CI on head a3a1acb: 11/11 checks green (CI + CodeQL).

Playwright >=1.5x installs chromium under chrome-linux64, so the find on
chrome-linux matched nothing and left dangling google-chrome symlinks; the
supervisor then failed to spawn chrome (#14). Also add libatomic1 (needed by
Playwright's bundled node) and stop swallowing playwright install errors.
libsqlite3-sys 0.30.1 bundles SQLite < 3.54.0 (uninitialised page-cache read
with mismatched WAL). rusqlite 0.41 pulls libsqlite3-sys 0.39.1 (SQLite 3.54.1).
archive.ubuntu.com and security.ubuntu.com return SERVFAIL from the default
resolvers on GitHub runners and a WSL2 host, failing every apt-get in the
image build. The kernel.org mirror carries the same signed archive.
example.com no longer has an <h1> (title/first <p> only, no static <a>), and
the supervisor now runs six processes. Assert on <title> and the paragraph
text, and require at least the four desktop processes.
…isory (#15)

Update npm and sharp in the image (13 HIGH Node findings -> 0) and ignore
RUSTSEC-2024-0437 in cargo audit with the same rationale as deny.toml.
@todie
todie force-pushed the fix/security-scans branch from e9e0171 to a3a1acb Compare November 11, 2026 15:49
@todie
todie marked this pull request as ready for review November 11, 2026 16:09
@todie
todie merged commit a3a1acb into main Nov 11, 2026
11 checks passed
@todie
todie deleted the fix/security-scans branch November 11, 2026 17:04
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