diff --git a/.cargo/audit.toml b/.cargo/audit.toml index 6437e69..bb1e6af 100644 --- a/.cargo/audit.toml +++ b/.cargo/audit.toml @@ -6,11 +6,13 @@ [advisories] # Documented, reviewed exceptions only. ignore = [ - # RUSTSEC-2023-0071 — "Marvin Attack" timing sidechannel in `rsa`. - # No patched release exists (upstream RustCrypto/RSA#626 still open as of - # 2026-09; `patched = []` is intentional). `rsa` is an unconditional - # transitive dependency of `jsonwebtoken`'s `rust_crypto` feature and cannot - # be disabled; the vulnerable RSA code path is never reached because - # rustasea-auth uses HS256 (HMAC-SHA256) exclusively. Accepted risk. + # RUSTSEC-2023-0071 — "Marvin Attack" timing sidechannel in `rsa` + # private-key operations, patched in `rsa` 0.10. The affected 0.9 line + # remains only through `sqlx-mysql` 0.8 (public-key password encryption) and + # a test-only dev-dependency of `rustasea-google`. See deny.toml. "RUSTSEC-2023-0071", + # RUSTSEC-2026-0459 — CVE-2026-119375 in the SQLite bundled by + # `libsqlite3-sys` before 0.39. `sqlx` 0.8 pins 0.30 and `sqlx` 0.9 needs + # rustc 1.94, above the workspace MSRV of 1.88. See deny.toml. + "RUSTSEC-2026-0459", ] diff --git a/Cargo.lock b/Cargo.lock index addd704..2439934 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -168,15 +168,6 @@ version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" -[[package]] -name = "arbitrary" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1" -dependencies = [ - "derive_arbitrary", -] - [[package]] name = "argon2" version = "0.5.3" @@ -556,12 +547,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d27c3610c36aee21ce8ac510e6224498de4228ad772a171ed65643a24693a5a8" -[[package]] -name = "base16ct" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" - [[package]] name = "base16ct" version = "1.0.0" @@ -837,9 +822,9 @@ dependencies = [ [[package]] name = "calamine" -version = "0.36.1" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fa68281b1a76b54a62156474adb06bb380a67e07dd60656e3217152b42183f3" +checksum = "f431b67cba6122a1f7d26b7adafc71bbdf07026095fe811f5efc025d8748e1d8" dependencies = [ "atoi_simd", "byteorder", @@ -847,9 +832,9 @@ dependencies = [ "encoding_rs", "fast-float2", "log", - "quick-xml", + "quick-xml 0.42.0", "serde", - "zip 8.6.0", + "zip", ] [[package]] @@ -1072,9 +1057,9 @@ checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" [[package]] name = "clipboard-win" -version = "5.4.1" +version = "5.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bde03770d3df201d4fb868f2c9c59e66a3e4e2bd06692a0fe701e7103c7e84d4" +checksum = "052af7878466feccda12ba7a6a67d019d712f296809559b47c12c8cc196d3a9a" dependencies = [ "error-code", ] @@ -1308,6 +1293,15 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f67855af358fcb20fac58f9d714c94e2b228fe5694c1c9b4ead4a366343eda1b" +[[package]] +name = "constant_time_eq" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9eb6feb175df65d0a3ccd3e73484e940d0ac664e8034f0519fd49a93db3071d9" +dependencies = [ + "rustversion", +] + [[package]] name = "content_disposition" version = "0.4.0" @@ -1564,21 +1558,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" [[package]] name = "crypto-bigint" -version = "0.5.5" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" -dependencies = [ - "generic-array 0.14.7", - "rand_core 0.6.4", - "subtle", - "zeroize", -] - -[[package]] -name = "crypto-bigint" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a52aa3fcda4e6302a9f48734f234d35d4721b96f8fe07d073f07ce9df4f0271" +checksum = "914c195c4d7fbc5ed7f88d14cbf85914d5c664967658d43404b263913a477e82" dependencies = [ "cpubits", "ctutils", @@ -1619,7 +1601,7 @@ version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3633a51a39c69ebbaa4feaa694bd83d241e4093901c84a0963b19d9bb3f0cf8f" dependencies = [ - "crypto-bigint 0.7.5", + "crypto-bigint", "rand_core 0.10.1", ] @@ -1655,30 +1637,14 @@ dependencies = [ [[package]] name = "ctutils" -version = "0.4.2" +version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e" +checksum = "261af4dc7a06ea8a527a8717d8cbba3417530d6ea14e1edb3de6b67806be474f" dependencies = [ "cmov", "subtle", ] -[[package]] -name = "curve25519-dalek" -version = "4.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" -dependencies = [ - "cfg-if", - "cpufeatures 0.2.17", - "curve25519-dalek-derive", - "digest 0.10.7", - "fiat-crypto 0.2.9", - "rustc_version", - "subtle", - "zeroize", -] - [[package]] name = "curve25519-dalek" version = "5.0.0" @@ -1689,7 +1655,7 @@ dependencies = [ "cpufeatures 0.3.1", "curve25519-dalek-derive", "digest 0.11.3", - "fiat-crypto 0.3.0", + "fiat-crypto", "rand_core 0.10.1", "rustc_version", "subtle", @@ -1972,17 +1938,6 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "derive_arbitrary" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "derive_more" version = "2.1.1" @@ -2056,6 +2011,7 @@ dependencies = [ "const-oid 0.10.2", "crypto-common 0.2.2", "ctutils", + "zeroize", ] [[package]] @@ -2557,20 +2513,6 @@ version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" -[[package]] -name = "ecdsa" -version = "0.16.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" -dependencies = [ - "der 0.7.10", - "digest 0.10.7", - "elliptic-curve 0.13.8", - "rfc6979 0.4.0", - "signature 2.2.0", - "spki 0.7.3", -] - [[package]] name = "ecdsa" version = "0.17.0" @@ -2579,23 +2521,13 @@ checksum = "c0681a4fc24c767085329728d8dfba959af91228aa4610cca4f8ce317ba46ae0" dependencies = [ "der 0.8.2", "digest 0.11.3", - "elliptic-curve 0.14.1", - "rfc6979 0.6.0", + "elliptic-curve", + "rfc6979", "signature 3.0.0", - "spki 0.8.0", + "spki 0.8.1", "zeroize", ] -[[package]] -name = "ed25519" -version = "2.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" -dependencies = [ - "pkcs8 0.10.2", - "signature 2.2.0", -] - [[package]] name = "ed25519" version = "3.0.0" @@ -2606,28 +2538,14 @@ dependencies = [ "signature 3.0.0", ] -[[package]] -name = "ed25519-dalek" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9" -dependencies = [ - "curve25519-dalek 4.1.3", - "ed25519 2.2.3", - "serde", - "sha2 0.10.9", - "subtle", - "zeroize", -] - [[package]] name = "ed25519-dalek" version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ebaa1a2bf1290ab3bfe5a7b771d050ebffab2711c19a81691c683a5144a25de" dependencies = [ - "curve25519-dalek 5.0.0", - "ed25519 3.0.0", + "curve25519-dalek", + "ed25519", "rand_core 0.10.1", "serde", "sha2 0.11.0", @@ -2655,45 +2573,24 @@ dependencies = [ "pin-project-lite", ] -[[package]] -name = "elliptic-curve" -version = "0.13.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" -dependencies = [ - "base16ct 0.2.0", - "crypto-bigint 0.5.5", - "digest 0.10.7", - "ff 0.13.1", - "generic-array 0.14.7", - "group 0.13.0", - "hkdf 0.12.4", - "pem-rfc7468 0.7.0", - "pkcs8 0.10.2", - "rand_core 0.6.4", - "sec1 0.7.3", - "subtle", - "zeroize", -] - [[package]] name = "elliptic-curve" version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d65aa39b3a5c1c9c1b745c9a019234bb7a21b77abcb4f4d266d706e2d577d65" dependencies = [ - "base16ct 1.0.0", - "crypto-bigint 0.7.5", + "base16ct", + "crypto-bigint", "crypto-common 0.2.2", "digest 0.11.3", - "ff 0.14.0", - "group 0.14.0", + "ff", + "group", "hkdf 0.13.0", "hybrid-array", "pem-rfc7468 1.0.0", "pkcs8 0.11.0", "rand_core 0.10.1", - "sec1 0.8.1", + "sec1", "subtle", "zeroize", ] @@ -2781,7 +2678,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys 0.59.0", ] [[package]] @@ -2914,16 +2811,6 @@ dependencies = [ "web-time", ] -[[package]] -name = "ff" -version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393" -dependencies = [ - "rand_core 0.6.4", - "subtle", -] - [[package]] name = "ff" version = "0.14.0" @@ -2934,12 +2821,6 @@ dependencies = [ "subtle", ] -[[package]] -name = "fiat-crypto" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" - [[package]] name = "fiat-crypto" version = "0.3.0" @@ -3136,7 +3017,6 @@ checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum", "version_check", - "zeroize", ] [[package]] @@ -3294,24 +3174,13 @@ dependencies = [ "web-sys", ] -[[package]] -name = "group" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" -dependencies = [ - "ff 0.13.1", - "rand_core 0.6.4", - "subtle", -] - [[package]] name = "group" version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fd1a1c7a5206c5b7a3f5a0d7ccd3ff85d0c8f5133d62a02680255b0004af5f4" dependencies = [ - "ff 0.14.0", + "ff", "rand_core 0.10.1", "subtle", ] @@ -3718,7 +3587,7 @@ dependencies = [ "tokio", "tokio-rustls", "tower-service", - "webpki-roots 1.0.9", + "webpki-roots 1.0.12", ] [[package]] @@ -3751,7 +3620,7 @@ dependencies = [ "libc", "percent-encoding", "pin-project-lite", - "socket2 0.6.5", + "socket2 0.5.10", "tokio", "tower-service", "tracing", @@ -4289,24 +4158,23 @@ dependencies = [ [[package]] name = "jsonwebtoken" -version = "10.4.0" +version = "12.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eba32bfb4ffdeaca3e34431072faf01745c9b26d25504aa7a6cf5684334fc4fc" +checksum = "f347a975eb5fa8f5c4eadce6c1152c11c326cf32cf839fb64ff12d5cb8f4ce8b" dependencies = [ - "base64 0.22.1", - "ed25519-dalek 2.2.0", - "getrandom 0.2.17", - "hmac 0.12.1", + "base64 0.23.1", + "ed25519-dalek", + "getrandom 0.4.3", + "hmac 0.13.0", "js-sys", - "p256 0.13.2", - "p384 0.13.1", + "p256", + "p384", "pem", - "rand 0.8.8", - "rsa 0.9.10", + "rsa 0.10.0", "serde", "serde_json", - "sha2 0.10.9", - "signature 2.2.0", + "sha2 0.11.0", + "signature 3.0.0", "simple_asn1", "zeroize", ] @@ -4524,7 +4392,7 @@ dependencies = [ "tokio", "tokio-rustls", "url", - "webpki-roots 1.0.9", + "webpki-roots 1.0.12", ] [[package]] @@ -4998,7 +4866,7 @@ dependencies = [ "tokio-util", "typed-builder 0.22.0", "uuid", - "webpki-roots 1.0.9", + "webpki-roots 1.0.12", ] [[package]] @@ -5113,7 +4981,7 @@ version = "0.50.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.59.0", ] [[package]] @@ -5455,7 +5323,7 @@ dependencies = [ "nix", "parking_lot", "percent-encoding", - "quick-xml", + "quick-xml 0.41.0", "rand 0.10.2", "reqwest 0.13.5", "rustls-pki-types", @@ -5532,54 +5400,30 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "p256" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b" -dependencies = [ - "ecdsa 0.16.9", - "elliptic-curve 0.13.8", - "primeorder 0.13.6", - "sha2 0.10.9", -] - [[package]] name = "p256" version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2c9239b2dbc807adbbe147e8cf72ea7450c3a0aabe62cb8e75ff4ec22e1f72a" dependencies = [ - "ecdsa 0.17.0", - "elliptic-curve 0.14.1", + "ecdsa", + "elliptic-curve", "primefield", - "primeorder 0.14.0", + "primeorder", "sha2 0.11.0", ] -[[package]] -name = "p384" -version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe42f1670a52a47d448f14b6a5c61dd78fce51856e68edaa38f7ae3a46b8d6b6" -dependencies = [ - "ecdsa 0.16.9", - "elliptic-curve 0.13.8", - "primeorder 0.13.6", - "sha2 0.10.9", -] - [[package]] name = "p384" version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d17b851e6b3e378ab4ecb07fa2ed23f4d15f075735f8fec9fa1e7bdce5f8301f" dependencies = [ - "ecdsa 0.17.0", - "elliptic-curve 0.14.1", - "fiat-crypto 0.3.0", + "ecdsa", + "elliptic-curve", + "fiat-crypto", "primefield", - "primeorder 0.14.0", + "primeorder", "sha2 0.11.0", ] @@ -5589,11 +5433,11 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ad64cc32c2dc466317c12ee5853e61f159f9eab1fe7efade0395dc2e7b43449" dependencies = [ - "base16ct 1.0.0", - "ecdsa 0.17.0", - "elliptic-curve 0.14.1", + "base16ct", + "ecdsa", + "elliptic-curve", "primefield", - "primeorder 0.14.0", + "primeorder", "sha2 0.11.0", ] @@ -5603,7 +5447,7 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d8eab09a361a4afe0b1668be978cd97e4f052e927a92b0b608cf902965d49ce" dependencies = [ - "base16ct 1.0.0", + "base16ct", "byteorder", "bytes", "delegate", @@ -5715,11 +5559,11 @@ dependencies = [ [[package]] name = "pem" -version = "3.0.6" +version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be" +checksum = "d354a98a3d1251555de99e8fdd8afda05573c31b82f59063a7b0a29b5527f120" dependencies = [ - "base64 0.22.1", + "base64 0.23.1", "serde_core", ] @@ -5823,12 +5667,12 @@ dependencies = [ [[package]] name = "pkcs1" -version = "0.8.0-rc.4" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "986d2e952779af96ea048f160fd9194e1751b4faea78bcf3ceb456efe008088e" +checksum = "6250dd7321adbe93d12b750aee0ced159fd13e77f625edcdf1cb6f83cd99f650" dependencies = [ "der 0.8.2", - "spki 0.8.0", + "spki 0.8.1", ] [[package]] @@ -5845,7 +5689,7 @@ dependencies = [ "rand_core 0.10.1", "scrypt", "sha2 0.11.0", - "spki 0.8.0", + "spki 0.8.1", ] [[package]] @@ -5867,7 +5711,7 @@ dependencies = [ "der 0.8.2", "pkcs5", "rand_core 0.10.1", - "spki 0.8.0", + "spki 0.8.1", ] [[package]] @@ -5995,30 +5839,21 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c555a6e4eb7d4e158fcb028c835c3b8642206ddc279b5c6b202ef9a8bdb592f4" dependencies = [ - "crypto-bigint 0.7.5", + "crypto-bigint", "crypto-common 0.2.2", - "ff 0.14.0", + "ff", "rand_core 0.10.1", "subtle", "zeroize", ] -[[package]] -name = "primeorder" -version = "0.13.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6" -dependencies = [ - "elliptic-curve 0.13.8", -] - [[package]] name = "primeorder" version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c9f42978c78a00e3d68f69fc03e57a234debae69da4020a4fb588fcdcd07b06" dependencies = [ - "elliptic-curve 0.14.1", + "elliptic-curve", "once_cell", "primefield", "serdect", @@ -6155,11 +5990,20 @@ version = "0.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1" dependencies = [ - "encoding_rs", "memchr", "serde", ] +[[package]] +name = "quick-xml" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b" +dependencies = [ + "encoding_rs", + "memchr", +] + [[package]] name = "quinn" version = "0.11.11" @@ -6173,7 +6017,7 @@ dependencies = [ "quinn-udp", "rustc-hash 2.1.3", "rustls", - "socket2 0.6.5", + "socket2 0.5.10", "thiserror 2.0.20", "tokio", "tracing", @@ -6182,9 +6026,9 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.11.17" +version = "0.11.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04759210543be93709136e28212294a659ef5001836ff4eab4d663e4529bba83" +checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe" dependencies = [ "aws-lc-rs", "bytes", @@ -6205,16 +6049,16 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.15" +version = "0.5.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694" +checksum = "af66907df18639dcf4db56ca65490cabc4b27a97dbadd96f2926cca73298f016" dependencies = [ "cfg_aliases", "libc", "once_cell", - "socket2 0.6.5", + "socket2 0.5.10", "tracing", - "windows-sys 0.61.2", + "windows-sys 0.59.0", ] [[package]] @@ -6547,7 +6391,7 @@ dependencies = [ "wasm-bindgen-futures", "wasm-streams 0.4.2", "web-sys", - "webpki-roots 1.0.9", + "webpki-roots 1.0.12", ] [[package]] @@ -6598,23 +6442,13 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e061d1b48cb8d38042de4ae0a7a6401009d6143dc80d2e2d6f31f0bdd6470c7" -[[package]] -name = "rfc6979" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" -dependencies = [ - "hmac 0.12.1", - "subtle", -] - [[package]] name = "rfc6979" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4a459cddafb3fe76b31fd8f1108007566c40301feb64dc7b54656eb7388172b" dependencies = [ - "crypto-bigint 0.7.5", + "crypto-bigint", "hmac 0.13.0", ] @@ -6654,20 +6488,22 @@ dependencies = [ [[package]] name = "rsa" -version = "0.10.0-rc.18" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30b2aa4ba0d89f73d1e332df05be0eeab8840351c36ca5654341dfdb57bb3caf" +checksum = "23e77fd77e0dea28b3011fd62d15445b7de7959333b0276d930e03be0f755699" dependencies = [ "const-oid 0.10.2", - "crypto-bigint 0.7.5", + "crypto-bigint", + "crypto-common 0.2.2", "crypto-primes", "digest 0.11.3", - "pkcs1 0.8.0-rc.4", + "hmac 0.13.0", + "pkcs1 0.8.0", "pkcs8 0.11.0", "rand_core 0.10.1", "sha2 0.11.0", "signature 3.0.0", - "spki 0.8.0", + "spki 0.8.1", "zeroize", ] @@ -6688,9 +6524,9 @@ dependencies = [ [[package]] name = "russh" -version = "0.65.1" +version = "0.65.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94be3d86c71b9ed220a675c405e35c7a02565a009bf8da2e9cc13a700320a5c5" +checksum = "78229f06e4d96d83bea5f5133ad3b6e4b5f0ce22d8e31c1ff7243ec8e18d5ba1" dependencies = [ "aes", "bitflags 2.13.1", @@ -6699,16 +6535,16 @@ dependencies = [ "bytes", "cbc", "cipher 0.5.2", - "crypto-bigint 0.7.5", + "crypto-bigint", "ctr", - "curve25519-dalek 5.0.0", + "curve25519-dalek", "data-encoding", "delegate", "der 0.8.2", "digest 0.11.3", - "ecdsa 0.17.0", - "ed25519-dalek 3.0.0", - "elliptic-curve 0.14.1", + "ecdsa", + "ed25519-dalek", + "elliptic-curve", "enum_dispatch", "futures", "generic-array 1.4.5", @@ -6723,29 +6559,29 @@ dependencies = [ "ml-kem", "module-lattice", "num-bigint 0.5.1", - "p256 0.14.0", - "p384 0.14.0", + "p256", + "p384", "p521", "pageant", "pbkdf2", - "pkcs1 0.8.0-rc.4", + "pkcs1 0.8.0", "pkcs5", "pkcs8 0.11.0", "polyval", "rand 0.10.2", "rand_core 0.10.1", "ring", - "rsa 0.10.0-rc.18", + "rsa 0.10.0", "russh-cryptovec", "russh-util", "salsa20", "scrypt", - "sec1 0.8.1", + "sec1", "sha1 0.11.0", "sha2 0.11.0", "sha3 0.12.0", "signature 3.0.0", - "spki 0.8.0", + "spki 0.8.1", "ssh-encoding", "ssh-key", "subtle", @@ -6802,11 +6638,11 @@ dependencies = [ [[package]] name = "rust_xlsxwriter" -version = "0.79.4" +version = "0.102.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c743cb9f2a4524676020e26ee5f298445a82d882b09956811b1e78ca7e42b440" +checksum = "6ca3d0e879a578c1313c2800ab0c6c029d38eed18098675e50341a30d32372ed" dependencies = [ - "zip 2.6.1", + "zip", ] [[package]] @@ -6948,7 +6784,7 @@ dependencies = [ "hex", "hmac 0.12.1", "jsonwebtoken", - "p256 0.13.2", + "p256", "rustasea-cache", "rustasea-config", "rustasea-foundation", @@ -7562,15 +7398,15 @@ dependencies = [ [[package]] name = "rustix" -version = "1.1.4" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" dependencies = [ "bitflags 2.13.1", "errno", "libc", "linux-raw-sys", - "windows-sys 0.61.2", + "windows-sys 0.59.0", ] [[package]] @@ -7629,7 +7465,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.61.2", + "windows-sys 0.59.0", ] [[package]] @@ -7640,9 +7476,9 @@ checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" [[package]] name = "rustls-webpki" -version = "0.103.15" +version = "0.103.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" +checksum = "e3a0760a887c14823fca5a1c970b01d47c328c696c0c64829d1df50e8f853fd5" dependencies = [ "aws-lc-rs", "ring", @@ -7751,27 +7587,13 @@ dependencies = [ "sha2 0.11.0", ] -[[package]] -name = "sec1" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" -dependencies = [ - "base16ct 0.2.0", - "der 0.7.10", - "generic-array 0.14.7", - "pkcs8 0.10.2", - "subtle", - "zeroize", -] - [[package]] name = "sec1" version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d56d437c2f19203ce5f7122e507831de96f3d2d4d3be5af44a0b0a09d8a80e4d" dependencies = [ - "base16ct 1.0.0", + "base16ct", "ctutils", "der 0.8.2", "hybrid-array", @@ -8091,7 +7913,7 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "66cf8fedced2fcf12406bcb34223dffb92eaf34908ede12fed414c82b7f00b3e" dependencies = [ - "base16ct 1.0.0", + "base16ct", "serde", ] @@ -8416,9 +8238,9 @@ dependencies = [ [[package]] name = "spki" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d9efca8738c78ee9484207732f728b1ef517bbb1833d6fc0879ca898a522f6f" +checksum = "7ef958a98b9d5da290cfc78946e9f3e61e1e62a18db0d92cac0b83cc161491a9" dependencies = [ "base64ct", "der 0.8.2", @@ -8654,7 +8476,7 @@ checksum = "7b54d0ed0498daf3f78d82e00e28c8eec9d75a067c4cfbcc7a0f7d0f4077749e" dependencies = [ "base64ct", "bytes", - "crypto-bigint 0.7.5", + "crypto-bigint", "ctutils", "digest 0.11.3", "pem-rfc7468 1.0.0", @@ -8663,22 +8485,22 @@ dependencies = [ [[package]] name = "ssh-key" -version = "0.7.0-rc.11" +version = "0.7.0-rc.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a32fae177b74a22aa9c5b01bf7e68b33545be32d9e381e248058d2adc15ce3" +checksum = "0701b552e6bd8f13a6e07bde25307c32d7daad80a79b65832d110c0416e7b638" dependencies = [ "argon2 0.6.0", "bcrypt-pbkdf", "ctutils", - "ed25519-dalek 3.0.0", + "ed25519-dalek", "hex", "hmac 0.13.0", - "p256 0.14.0", - "p384 0.14.0", + "p256", + "p384", "p521", "rand_core 0.10.1", - "rsa 0.10.0-rc.18", - "sec1 0.8.1", + "rsa 0.10.0", + "sec1", "sha1 0.11.0", "sha2 0.11.0", "signature 3.0.0", @@ -8988,10 +8810,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.3", + "getrandom 0.3.4", "once_cell", "rustix", - "windows-sys 0.61.2", + "windows-sys 0.59.0", ] [[package]] @@ -9001,7 +8823,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "230a1b821ccbd75b185820a1f1ff7b14d21da1e442e22c0863ea5f08771a8874" dependencies = [ "rustix", - "windows-sys 0.61.2", + "windows-sys 0.59.0", ] [[package]] @@ -9182,9 +9004,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.53.1" +version = "1.54.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" dependencies = [ "bytes", "libc", @@ -9681,9 +9503,9 @@ dependencies = [ [[package]] name = "typed-path" -version = "0.12.3" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e28f89b80c87b8fb0cf04ab448d5dd0dd0ade2f8891bae878de66a75a28600e" +checksum = "9ce898823d8cd0f028662d2f349694b1af0a5cc9be83f1d213a00d3147445e1e" [[package]] name = "typenum" @@ -9790,7 +9612,7 @@ dependencies = [ "rustls-pki-types", "ureq-proto", "utf8-zero", - "webpki-roots 1.0.9", + "webpki-roots 1.0.12", ] [[package]] @@ -10112,9 +9934,9 @@ dependencies = [ [[package]] name = "webpki-root-certs" -version = "1.0.9" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b96554aa2acc8ccdb7e1c9a58a7a68dd5d13bccc69cd124cb09406db612a1c9b" +checksum = "293198dcebfb821155b5092ab94b5a82ff180eddd7241df3bd6e66a4ffd1a585" dependencies = [ "rustls-pki-types", ] @@ -10125,14 +9947,14 @@ version = "0.26.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9" dependencies = [ - "webpki-roots 1.0.9", + "webpki-roots 1.0.12", ] [[package]] name = "webpki-roots" -version = "1.0.9" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a" +checksum = "7265c9301c16a8711c992c2d8da90ee77ef54b1ed51482d6dfeb00dc756b1297" dependencies = [ "rustls-pki-types", ] @@ -10181,7 +10003,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.48.0", ] [[package]] @@ -10564,8 +10386,8 @@ version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "795ca18b3fdb5e62bf982199278341ddcf7ebf7d32e25e212ad05d496e95f6fa" dependencies = [ - "ff 0.14.0", - "group 0.14.0", + "ff", + "group", "hybrid-array", "primefield", ] @@ -10790,30 +10612,21 @@ dependencies = [ [[package]] name = "zip" -version = "2.6.1" +version = "9.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dcb24d0152526ae49b9b96c1dcf71850ca1e0b882e4e28ed898a93c41334744" -dependencies = [ - "arbitrary", - "crc32fast", - "crossbeam-utils", - "flate2", - "indexmap 2.14.2", - "memchr", - "zopfli", -] - -[[package]] -name = "zip" -version = "8.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b" +checksum = "08687262e7c0f1284b259686f322805a8adaa8ef4d7210e76448950b3f083bf7" dependencies = [ + "constant_time_eq", "crc32fast", "flate2", + "getrandom 0.4.3", "indexmap 2.14.2", + "libc", "memchr", + "nix", "typed-path", + "windows-sys 0.61.2", + "zeroize", "zopfli", ] diff --git a/Cargo.toml b/Cargo.toml index 49e73db..799643d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,7 +39,7 @@ uuid = { version = "1", features = ["v4", "v7", "serde"] } chrono = { version = "0.4", features = ["serde"] } thiserror = "1" # Security (M3) -jsonwebtoken = { version = "10", default-features = false, features = ["rust_crypto"] } +jsonwebtoken = { version = "12", default-features = false, features = ["rust_crypto"] } argon2 = { version = "0.5", default-features = false, features = ["alloc", "password-hash", "rand", "simple", "std"] } tower-sessions = { version = "0.15", default-features = false, features = ["memory-store"] } # Validation (M3) @@ -64,7 +64,7 @@ chacha20poly1305 = "0.10" # assertions; `ciborium` parses the CBOR attestation object / COSE public key; # `base64` decodes the base64url ceremony fields. All three are already in the # lock (`p256` via `jsonwebtoken`), so this adds no new upstream source. -p256 = { version = "0.13", default-features = false, features = ["ecdsa", "std"] } +p256 = { version = "0.14", default-features = false, features = ["ecdsa", "std"] } ciborium = "0.2" base64 = "0.22" # Macros (M0) @@ -129,12 +129,13 @@ tracing-appender = "0.2" # Excel / CSV import-export (ADOPT-023) — `csv` streams delimited records with # serde support (unconditional in the crate); `calamine` reads xlsx/xlsm # workbooks and `rust_xlsxwriter` writes them, both behind the crate's opt-in -# `xlsx` feature. `calamine` 0.36 pulls `quick-xml` 0.41, clearing -# RUSTSEC-2026-0194/0195 (present in the 0.31 that `calamine` 0.26 pinned). All -# three declare a rustc MSRV at or below the workspace `rust-version` (1.88). +# `xlsx` feature. `calamine` 0.38 and `rust_xlsxwriter` 0.102 both resolve to +# `zip` 9.x, clearing the `zip` extraction advisories (RUSTSEC-2026-0367 and +# its siblings) and RUSTSEC-2026-0436 in `calamine` itself. All three declare a +# rustc MSRV at or below the workspace `rust-version` (1.88). csv = "1.3" -calamine = "0.36" -rust_xlsxwriter = "0.79" +calamine = "0.38" +rust_xlsxwriter = "0.102" # Image manipulation (ADOPT-024) — `image` decodes/encodes the raster formats # the transform pipeline supports. Default features are disabled and only the # codecs the crate advertises are enabled (jpeg/png/webp/gif/bmp/tiff); this diff --git a/SECURITY.md b/SECURITY.md index 6883c52..79af2cc 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -99,9 +99,11 @@ RustaSea gates its dependency graph on every CI run: in `deny.toml`. - `cargo audit` runs the RustSec advisory scan as a required CI job. Unpatchable advisories are allow-listed with a documented reason in - `deny.toml` and mirrored in `.cargo/audit.toml` (the current exception is - `RUSTSEC-2023-0071`, whose vulnerable `rsa` code path is never reached because - RustaSea uses HS256/HMAC exclusively). + `deny.toml` and mirrored in `.cargo/audit.toml`. The current exceptions are + `RUSTSEC-2023-0071` (`rsa` 0.9, which remains only through `sqlx-mysql` and a + test dependency), `RUSTSEC-2026-0459` (the SQLite bundled by `libsqlite3-sys`, + which `sqlx` 0.8 pins below the patched release), and the unmaintained notices + for `chrono` and `chrono-tz` (`RUSTSEC-2026-0543`, `RUSTSEC-2026-0555`). Both checks run in `.github/workflows/ci.yml` and can be reproduced locally: diff --git a/crates/rustasea-auth/src/jwt.rs b/crates/rustasea-auth/src/jwt.rs index 07c4e67..2e818d5 100644 --- a/crates/rustasea-auth/src/jwt.rs +++ b/crates/rustasea-auth/src/jwt.rs @@ -133,12 +133,10 @@ impl JwtGuard { /// Sign `claims` into a compact JWT string. fn sign(&self, claims: &JwtClaims) -> Result { - encode( - &Header::new(Algorithm::HS256), - claims, - &EncodingKey::from_secret(self.cfg.secret.as_bytes()), - ) - .map_err(|e| AuthError::Token(e.to_string())) + let key = EncodingKey::from_secret(self.cfg.secret.as_bytes()) + .map_err(|e| AuthError::Token(e.to_string()))?; + encode(&Header::new(Algorithm::HS256), claims, &key) + .map_err(|e| AuthError::Token(e.to_string())) } /// Decode and fully validate a token (signature, exp, iss, aud). @@ -147,16 +145,15 @@ impl JwtGuard { validation.set_issuer(&[&self.cfg.issuer]); validation.set_audience(&[&self.cfg.audience]); validation.leeway = 0; - decode::( - token, - &DecodingKey::from_secret(self.cfg.secret.as_bytes()), - &validation, - ) - .map(|d| d.claims) - .map_err(|e| match e.kind() { - jsonwebtoken::errors::ErrorKind::ExpiredSignature => AuthError::ExpiredToken, - _ => AuthError::InvalidToken, - }) + // A secret the HMAC key constructor rejects can verify no token. + let key = DecodingKey::from_secret(self.cfg.secret.as_bytes()) + .map_err(|_| AuthError::InvalidToken)?; + decode::(token, &key, &validation) + .map(|d| d.claims) + .map_err(|e| match e.kind() { + jsonwebtoken::errors::ErrorKind::ExpiredSignature => AuthError::ExpiredToken, + _ => AuthError::InvalidToken, + }) } /// Pair of signed claims for `user_id`. diff --git a/crates/rustasea-auth/src/passkeys/tests.rs b/crates/rustasea-auth/src/passkeys/tests.rs index e53776c..1d33f79 100644 --- a/crates/rustasea-auth/src/passkeys/tests.rs +++ b/crates/rustasea-auth/src/passkeys/tests.rs @@ -5,7 +5,6 @@ //! exercised end to end rather than mocked. use super::*; -use argon2::password_hash::rand_core::OsRng; use base64::engine::general_purpose::URL_SAFE_NO_PAD; use base64::Engine as _; use ciborium::value::Value as CborValue; @@ -19,6 +18,11 @@ const ORIGIN: &str = "http://localhost"; /// Credential id used by the ceremony fixtures. const CRED_ID: &str = "cred-1"; +/// A fixed P-256 signing key: the ceremonies need a valid key, not a random one. +fn signing_key() -> SigningKey { + SigningKey::from_slice(&[7u8; 32]).expect("valid P-256 scalar") +} + /// Resolved relying-party settings for the fixtures. fn resolved() -> ResolvedPasskeys { ResolvedPasskeys { @@ -77,7 +81,7 @@ fn registration_response( counter: u32, ) -> RegistrationResponse { let sec1 = VerifyingKey::from(signing) - .to_encoded_point(false) + .to_sec1_point(false) .as_bytes() .to_vec(); let client_data = @@ -157,7 +161,7 @@ async fn register(service: &PasskeyService, signing: &SigningKey) -> PasskeyCred #[tokio::test] async fn registration_then_assertion_round_trip() { let (service, store, _challenges) = service(); - let signing = SigningKey::random(&mut OsRng); + let signing = signing_key(); let credential = register(&service, &signing).await; assert_eq!(store.list("user-1").await.expect("list").len(), 1); @@ -182,7 +186,7 @@ async fn registration_then_assertion_round_trip() { #[tokio::test] async fn challenge_is_single_use() { let (service, _store, _challenges) = service(); - let signing = SigningKey::random(&mut OsRng); + let signing = signing_key(); let options = service .begin_registration("user-1", "ada@example.com", "Ada", "register") .await @@ -202,7 +206,7 @@ async fn challenge_is_single_use() { #[tokio::test] async fn counter_regression_is_rejected() { let (service, _store, _challenges) = service(); - let signing = SigningKey::random(&mut OsRng); + let signing = signing_key(); let credential = register(&service, &signing).await; let options = service @@ -230,7 +234,7 @@ async fn counter_regression_is_rejected() { #[tokio::test] async fn unknown_credential_is_rejected() { let (service, _store, _challenges) = service(); - let signing = SigningKey::random(&mut OsRng); + let signing = signing_key(); let _ = register(&service, &signing).await; let options = service.begin_authentication("a", &[]).await.expect("begin"); let response = authentication_response(&signing, &options.challenge, 1, None); @@ -247,7 +251,7 @@ async fn unknown_credential_is_rejected() { #[tokio::test] async fn wrong_origin_is_rejected() { let (service, _store, _challenges) = service(); - let signing = SigningKey::random(&mut OsRng); + let signing = signing_key(); let options = service .begin_registration("user-1", "ada@example.com", "Ada", "register") .await diff --git a/crates/rustasea-google/Cargo.toml b/crates/rustasea-google/Cargo.toml index 2397e43..648908f 100644 --- a/crates/rustasea-google/Cargo.toml +++ b/crates/rustasea-google/Cargo.toml @@ -29,8 +29,9 @@ tracing = { workspace = true } reqwest = { workspace = true, features = ["rustls-tls"] } [dev-dependencies] -# Test-only RSA key generation for the signing/exchange assertions. Both are -# already in the workspace lock via `jsonwebtoken` (rsa 0.9.10). +# Test-only RSA key generation for the signing/exchange assertions. `rsa` 0.9 +# is already in the workspace lock via `sqlx-mysql`, and it takes the `rand` 0.8 +# `OsRng` the workspace pins. rand = { workspace = true } rsa = "0.9" tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread"] } diff --git a/deny.toml b/deny.toml index c5c0664..5c92864 100644 --- a/deny.toml +++ b/deny.toml @@ -16,24 +16,38 @@ db-urls = ["https://github.com/rustsec/advisory-db"] # A yanked crate in the lockfile is never acceptable. yanked = "deny" # Unmaintained-crate scope (cargo-deny 0.20): "workspace" fails only for -# unmaintained crates that are direct dependencies of a workspace crate. The -# two unmaintained crates in the tree (`number_prefix` via `indicatif`, -# `proc-macro-error2` via `validator_derive`) are transitive and carry no -# known vulnerability, so they surface without failing the gate. Actual -# vulnerabilities always fail regardless of this setting. +# unmaintained crates that are direct dependencies of a workspace crate. +# Transitive unmaintained crates (for example `number_prefix` via `indicatif` +# and `proc-macro-error2` via `validator_derive`) carry no known vulnerability, +# so they surface without failing the gate. Actual vulnerabilities always fail +# regardless of this setting. unmaintained = "workspace" # Documented exceptions. Only genuine, reviewed exceptions belong here, each # with an inline reason (see below). ignore = [ - # RUSTSEC-2023-0071 — "Marvin Attack" timing sidechannel in the `rsa` - # crate. There is NO patched release (upstream RustCrypto/RSA#626 is still - # open as of 2026-09; `patched = []` is intentional). `rsa` is pulled - # unconditionally by `jsonwebtoken`'s `rust_crypto` feature (used for its - # HMAC/Ed25519/P-256 support), and no feature toggle removes it. The - # vulnerable code path is never reached: rustasea-auth signs and verifies - # JWTs exclusively with HS256 (HMAC-SHA256) — no RSA algorithm is used - # anywhere in the workspace. Accepted risk until upstream ships a fix. - { id = "RUSTSEC-2023-0071", reason = "no patched `rsa` release exists; `rsa` is an unavoidable transitive dep of jsonwebtoken's rust_crypto feature and its RSA code path is never used (HS256/HMAC only)" }, + # RUSTSEC-2023-0071 — "Marvin Attack" timing sidechannel in `rsa` private-key + # operations, patched in `rsa` 0.10. `jsonwebtoken` 12 and `russh` already + # resolve to 0.10; the affected 0.9 line remains only through `sqlx-mysql` + # 0.8 (the opt-in `mysql` feature) and as a test-only dev-dependency of + # `rustasea-google`. `sqlx-mysql` uses it to encrypt the password with the + # server's public key, which is not the private-key operation the advisory + # covers. Drop this entry when `sqlx` moves to 0.9 (see RUSTSEC-2026-0459). + { id = "RUSTSEC-2023-0071", reason = "`rsa` 0.9 remains only via sqlx-mysql 0.8 (public-key password encryption, not the affected private-key path) and a test-only dev-dependency; fixed by sqlx 0.9" }, + # RUSTSEC-2026-0459 — CVE-2026-119375 in the SQLite source bundled by + # `libsqlite3-sys` before 0.39. `sqlx-sqlite` 0.8 pins `libsqlite3-sys` + # 0.30, and the first `sqlx` line on a patched binding (0.9) declares + # `rust-version = 1.94`, above the workspace MSRV of 1.88 (ADR-0001). Per the + # advisory, only a process that opens a database file, together with its + # `-wal`, written by a less trusted party is exposed. Drop this entry when + # the MSRV allows `sqlx` 0.9. + { id = "RUSTSEC-2026-0459", reason = "no patched `libsqlite3-sys` is reachable under MSRV 1.88: sqlx 0.8 pins 0.30 and sqlx 0.9 needs rustc 1.94; exposure requires opening an untrusted database file with its -wal" }, + # RUSTSEC-2026-0543 / RUSTSEC-2026-0555 — `chrono` and `chrono-tz` are + # flagged unmaintained (no vulnerability). Both are direct dependencies used + # across the workspace, and `sqlx`'s `chrono` feature carries timestamps + # through the ORM, so replacing them is a migration of its own rather than a + # dependency bump. Accepted until that migration is scheduled. + { id = "RUSTSEC-2026-0543", reason = "`chrono` is unmaintained, not vulnerable; it is used across the workspace and through sqlx's `chrono` feature, so replacing it is a separate migration" }, + { id = "RUSTSEC-2026-0555", reason = "`chrono-tz` is unmaintained, not vulnerable; it follows the `chrono` migration" }, ] [licenses]