Skip to content

fix(deps): patch cookie and url and move rusqlite to 0.41 for the sqlite advisory - #368

Merged
ajianaz merged 1 commit into
developfrom
fix/cargo-audit-advisories
Dec 3, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/cargo-audit-advisories

Conversation

@ajianaz

@ajianaz ajianaz commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

What

Clears the three vulnerabilities that cargo audit reports on src-tauri/Cargo.lock: cookie 0.18.2 to 0.18.3 (RUSTSEC-2026-0594), url 2.5.8 to 2.5.9 with form_urlencoded 1.2.3 (RUSTSEC-2026-0592) and libsqlite3-sys 0.38.2 to 0.39.1 (RUSTSEC-2026-0459), the last by moving rusqlite from 0.40 to 0.41 (lock 0.41.1).

Why

The Cargo Audit job fails on every pull request, the one that adds CORA_PAUSE included, because the advisories are newer than the last green run. cookie and url are patch updates inside the ranges that Tauri, wry and reqwest ask for. The SQLite one has no fix inside rusqlite 0.40, so the minor release is the smallest change that clears it.

How

cargo update -p cookie, -p url and -p rusqlite after raising the requirement in src-tauri/Cargo.toml. The calls the app makes (Connection::open, execute, execute_batch, prepare, query_row, query_map, params!, row.get) have the same signatures in both versions. The bundled SQLite goes from 3.53.2 to 3.54.1. The lock file also moves a Windows-only edge of 13 packages (their windows-sys dependency, from 0.60.2 to 0.61.2: no version changed, nothing was added) as a side effect of the update; every requirement allows it.

Testing

  • cargo audit --file src-tauri/Cargo.lock --ignore RUSTSEC-2026-0194 --ignore RUSTSEC-2026-0195 reports no vulnerability and exits 0 (five warnings remain: chrono and proc-macro-error unmaintained, glib and rustix unsound, pin-project-lite yanked; the job does not deny warnings). cargo metadata --locked --offline is consistent.
  • cargo fmt, clippy, cargo test, svelte-check, npm run test and npm run build: not run. The Tauri app does not build in the environment this was prepared in (no webkit2gtk), so the CI jobs are the check that the rusqlite 0.41 bump compiles and the schema SQL still runs on SQLite 3.54.
  • Cora review run locally: not run.
  • An independent review of the diff read the sources of rusqlite 0.40.2 and 0.41.1 and the lock diff and found no break for the calls above; it noted that url 2.5.9 changes how a path is percent-encoded and how a backslash is read, which reaches the app only through Tauri's plugins and reqwest.

Related Issues

Follows the CORA_PAUSE pull request, whose Cargo Audit check this clears.

Checklist

  • Branch name follows convention (fix/)
  • Branch is from develop
  • Commit messages follow Conventional Commits
  • No secrets or credentials committed
  • One logical change per PR

…ite advisory

cargo audit on src-tauri/Cargo.lock reported three vulnerabilities that were not there when the job last passed: RUSTSEC-2026-0594 (cookie 0.18.2, fixed in 0.18.3), RUSTSEC-2026-0592 (url 2.5.8, fixed in 2.5.9) and RUSTSEC-2026-0459 (libsqlite3-sys 0.38.2, fixed in 0.39). cookie and url are lockfile updates inside their semver range. libsqlite3-sys 0.39 comes with rusqlite 0.41, which is one minor release up; the calls the app makes (open, execute, execute_batch, query_row, query_map, prepare, params!) are the same.
@ajianaz
ajianaz merged commit 3eeec62 into develop Dec 3, 2026
18 checks passed
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