Skip to content

deps: bump webbrowser to 1.2.4 to fix RUSTSEC-2026-0257 (CI audit failure) - #63

Merged
xjoker merged 1 commit into
devfrom
cursor/audit-webbrowser-bump-5a91
Aug 26, 2026
Merged

deps: bump webbrowser to 1.2.4 to fix RUSTSEC-2026-0257 (CI audit failure)#63
xjoker merged 1 commit into
devfrom
cursor/audit-webbrowser-bump-5a91

Conversation

@xjoker

@xjoker xjoker commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Problem

The CI Format and audit job (cargo audit) is failing on dev and on every open PR:

Crate:    webbrowser
Version:  1.2.1
Title:    Unix `BROWSER` handling allows browser argument injection
ID:       RUSTSEC-2026-0257
Solution: Upgrade to >=1.2.2

This is a pre-existing dependency advisory (published 2026-07-29), unrelated to any feature branch — it fails the audit job for all PRs including the Dependabot ones.

Fix

cargo update -p webbrowser1.2.1 → 1.2.4, which stays within the existing webbrowser = "1" requirement in Cargo.toml. Lockfile-only change (also pulls in transitive objc2-app-kit / objc2-core-foundation / dispatch2 bumps that webbrowser 1.2.4 requires on macOS).

Verification (Linux)

  • cargo build — OK
  • cargo audit — now exits 0:
Crate:     lru
Version:   0.18.0
Warning:   unsound  (RUSTSEC-2026-0253)
warning: 1 allowed warning found
AUDIT_EXIT=0

The remaining lru 0.18.0 unsound advisory (RUSTSEC-2026-0253) is a transitive dep of ratatui-core and only a warning — CI runs plain cargo audit (no --deny warnings), so it does not fail the job. Fixing it requires an upstream ratatui release and is out of scope here.

Note

Once this merges to dev, the audit job on other open PRs (e.g. #62 and the Dependabot bumps) will pass on re-run, since pull_request CI checks out the PR merged into dev.

Open in Web Open in Cursor 

cargo audit fails the CI "Format and audit" job on RUSTSEC-2026-0257:
webbrowser 1.2.1 allows browser-argument injection via the Unix BROWSER
env var (fixed in 1.2.2). Bump the locked version to 1.2.4, which stays
within the existing "1" requirement in Cargo.toml. Lockfile-only change.

The remaining lru 0.18.0 unsound advisory (RUSTSEC-2026-0253) is a
transitive dep of ratatui-core and only a warning; cargo audit exits 0.

Co-authored-by: xJoker <xjoker@users.noreply.github.com>
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.

2 participants