Repository navigation
fix(deps): patch cookie and url and move rusqlite to 0.41 for the sqlite advisory - #368
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Clears the three vulnerabilities that
cargo auditreports onsrc-tauri/Cargo.lock:cookie0.18.2 to 0.18.3 (RUSTSEC-2026-0594),url2.5.8 to 2.5.9 withform_urlencoded1.2.3 (RUSTSEC-2026-0592) andlibsqlite3-sys0.38.2 to 0.39.1 (RUSTSEC-2026-0459), the last by movingrusqlitefrom 0.40 to 0.41 (lock 0.41.1).Why
The
Cargo Auditjob fails on every pull request, the one that addsCORA_PAUSEincluded, because the advisories are newer than the last green run.cookieandurlare patch updates inside the ranges that Tauri, wry and reqwest ask for. The SQLite one has no fix insiderusqlite0.40, so the minor release is the smallest change that clears it.How
cargo update -p cookie,-p urland-p rusqliteafter raising the requirement insrc-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 (theirwindows-sysdependency, 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-0195reports no vulnerability and exits 0 (five warnings remain:chronoandproc-macro-errorunmaintained,glibandrustixunsound,pin-project-liteyanked; the job does not deny warnings).cargo metadata --locked --offlineis consistent.cargo fmt,clippy,cargo test,svelte-check,npm run testandnpm 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 therusqlite0.41 bump compiles and the schema SQL still runs on SQLite 3.54.rusqlite0.40.2 and 0.41.1 and the lock diff and found no break for the calls above; it noted thaturl2.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_PAUSEpull request, whoseCargo Auditcheck this clears.Checklist
fix/)develop