From baff1cabae39f55fd5111d0724d1389d08d00a63 Mon Sep 17 00:00:00 2001 From: Mathijs van Veluw Date: Thu, 19 Nov 2026 15:01:35 +0100 Subject: [PATCH 01/12] Misc updates (#7980) - Updated all crates except webauthn since it has incompatible dependencies - Updated DataTables JS - Updated GitHub Actions - Applied Zizmore fixes - Removed `fallback-icon.png` and return 404 when a favicon is not found, same as upstream does. - Updated `global_domains.json`, which removed a lot of domains. Even thought this large removal, lets keep it in sync with upstream. Users can still add custom domains to this list, or just add those domains to their vault item it self. Signed-off-by: BlackDex --- .github/workflows/release.yml | 12 +- .github/workflows/sdk-live-tests.yml | 5 +- .github/workflows/trivy.yml | 2 +- .github/workflows/typos.yml | 2 +- .github/workflows/zizmor.yml | 2 +- .pre-commit-config.yaml | 2 +- .typos.toml | 5 +- Cargo.lock | 69 ++- Cargo.toml | 6 +- src/api/icons.rs | 30 +- src/static/global_domains.json | 664 --------------------------- src/static/images/fallback-icon.png | Bin 483 -> 0 bytes src/static/scripts/datatables.css | 4 +- src/static/scripts/datatables.js | 82 ++-- 14 files changed, 126 insertions(+), 759 deletions(-) delete mode 100644 src/static/images/fallback-icon.png diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f80509d..81137067 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -106,7 +106,7 @@ jobs: # Login to Docker Hub - name: Login to Docker Hub - uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 + uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -121,7 +121,7 @@ jobs: # Login to GitHub Container Registry - name: Login to GitHub Container Registry - uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 + uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -137,7 +137,7 @@ jobs: # Login to Quay.io - name: Login to Quay.io - uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 + uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 with: registry: quay.io username: ${{ secrets.QUAY_USERNAME }} @@ -272,7 +272,7 @@ jobs: # Login to Docker Hub - name: Login to Docker Hub - uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 + uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -287,7 +287,7 @@ jobs: # Login to GitHub Container Registry - name: Login to GitHub Container Registry - uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 + uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -303,7 +303,7 @@ jobs: # Login to Quay.io - name: Login to Quay.io - uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 + uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 with: registry: quay.io username: ${{ secrets.QUAY_USERNAME }} diff --git a/.github/workflows/sdk-live-tests.yml b/.github/workflows/sdk-live-tests.yml index 25680f56..1d75eead 100644 --- a/.github/workflows/sdk-live-tests.yml +++ b/.github/workflows/sdk-live-tests.yml @@ -1,5 +1,8 @@ name: SDK live tests permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true # Runs the live-server end-to-end tests of bitwarden/sdk-internal against this branch, see tools/sdk-live-tests/run.sh. # By default it tests the latest @bitwarden/sdk-internal on npm, which the SDK publishes for every commit to its main @@ -128,7 +131,7 @@ jobs: save-if: ${{ github.ref == 'refs/heads/main' }} - name: "Setup Node" - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version-file: sdk-internal/.nvmrc diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index 7ffbe632..4a39491a 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -50,6 +50,6 @@ jobs: severity: CRITICAL,HIGH - name: Upload Trivy scan results to GitHub Security tab - uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1 + uses: github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3 with: sarif_file: 'trivy-results.sarif' diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index f7d1f92c..ace0c85c 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -23,4 +23,4 @@ jobs: # When this version is updated, do not forget to update this in `.pre-commit-config.yaml` too - name: Spell Check Repo - uses: crate-ci/typos@7f9d0819ca1c008ade73f4b41fa9d258d48f605b # v1.51.1 + uses: crate-ci/typos@276087d9a4f06398b3e04825487805e2d7375888 # v1.52.2 diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 7372759b..71bea7ce 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -24,7 +24,7 @@ jobs: persist-credentials: false - name: Run zizmor - uses: zizmorcore/zizmor-action@53290badfa369cb0bf7ad16342cb62c2fa47ac7b # v0.8.0 + uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1 with: # intentionally not scanning the entire repository, # since it contains integration tests. diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 78e7e79d..056b589e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: # When this version is updated, do not forget to update this in `.github/workflows/typos.yaml` too - repo: https://github.com/crate-ci/typos - rev: 7f9d0819ca1c008ade73f4b41fa9d258d48f605b # v1.51.1 + rev: 276087d9a4f06398b3e04825487805e2d7375888 # v1.52.2 hooks: - id: typos always_run: true diff --git a/.typos.toml b/.typos.toml index dabcadb4..d528b088 100644 --- a/.typos.toml +++ b/.typos.toml @@ -1,7 +1,8 @@ [files] extend-exclude = [ - ".git/", - "playwright/", + ".git/**", + "target/**", + "playwright/**", "*.js", # Ignore all JavaScript files "!admin*.js", # Except our own JavaScript files ] diff --git a/Cargo.lock b/Cargo.lock index cf05d7df..61c008d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -279,7 +279,7 @@ dependencies = [ "futures-core", "futures-io", "futures-lite", - "gloo-timers", + "gloo-timers 0.3.0", "kv-log-macro", "log", "memchr", @@ -335,6 +335,12 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d2050892d4691cf110586070786712b504985a4d37ed64a9cd8a402718e1706" +[[package]] +name = "asyncband" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e53c31fb18f42e765610b2146531390e56966f601d8ffca530d292a34fe4218" + [[package]] name = "atomic" version = "0.6.1" @@ -1990,6 +1996,10 @@ name = "futures-timer" version = "3.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af43fadb8a98512d547e37b4e92e0ced13e205c061b87b4623eff01d918d6968" +dependencies = [ + "gloo-timers 0.4.1", + "send_wrapper", +] [[package]] name = "futures-util" @@ -2090,6 +2100,18 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "gloo-timers" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4460540da666acdb5722b2a62ac47d18f627fcfc0c728d04dc7226b3f6d40a7" +dependencies = [ + "futures-channel", + "futures-core", + "js-sys", + "wasm-bindgen", +] + [[package]] name = "governor" version = "0.10.4" @@ -3365,7 +3387,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33d5a635dfea36a7a0c3bbb2ca34c97af17f98dd69b0cdf31a1d436a346e0a12" dependencies = [ "anyhow", - "asyncband", + "asyncband 0.7.4", "base64 0.23.1", "bytes", "futures", @@ -4325,12 +4347,15 @@ dependencies = [ [[package]] name = "reqsign-aws-core" -version = "3.2.0" +version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d38c902d8ec745bd9eadd1abbcbe227f4c1fc2926b2ec8929f89234af3114500" +checksum = "ef1efa04a2b037d30bcb6fcefb0f45a4478d89c57c02bc7c2dc8276e19082b15" dependencies = [ + "asyncband 0.8.0", "bytes", "form_urlencoded", + "futures", + "futures-timer", "hex", "http 1.5.0", "log", @@ -4346,9 +4371,9 @@ dependencies = [ [[package]] name = "reqsign-aws-v4" -version = "3.3.1" +version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "906bfd028f96bfe73fdb892ce26f3b3f99b4f30feb9bd024be58bd6657f68b2b" +checksum = "f30bc6afac5932e1c21763dd51fd593a86b242c5a83a8a12d428c0c2bef7819f" dependencies = [ "bytes", "http 1.5.0", @@ -4361,12 +4386,12 @@ dependencies = [ [[package]] name = "reqsign-core" -version = "3.3.2" +version = "3.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85fed85c436b6b920e4b36310f699a77771a91e38ae483df48447bd7d162671c" +checksum = "5041e58962ebf1a1806a06f45735f1932c9dda25ac2814a59a1b4a3f619c7862" dependencies = [ "anyhow", - "asyncband", + "asyncband 0.8.0", "base64 0.23.1", "bytes", "hex", @@ -4382,9 +4407,9 @@ dependencies = [ [[package]] name = "reqsign-file-read-tokio" -version = "3.0.7" +version = "3.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "586a8e198057773f9616901fd723a4bc186812b9765bc0f20368661d6169d906" +checksum = "66743687bc0ccf687625a39fb8e2d0ddb404c5141ce4edf8636dd18dd5c75a58" dependencies = [ "anyhow", "reqsign-core", @@ -4486,9 +4511,9 @@ dependencies = [ [[package]] name = "rocket" -version = "0.5.3" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a6f52722cade6c6423d6ad9ee5560a9ca2d888894f1bfef97f5b7f61c84f16b" +checksum = "b994aab1e1d2342ede2ee7a9be3aa18fc9eaa1c819d9a4b83cb6c5899f345bf8" dependencies = [ "async-stream", "async-trait", @@ -4524,9 +4549,9 @@ dependencies = [ [[package]] name = "rocket_codegen" -version = "0.5.3" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0df92d0cfe50ffd2b125dc8f5aa6ecbfa85f9e5f87aeceb46ca2fed8260d4fb" +checksum = "45c73d9cca43eac063ffb1e7f6b2ba52c777d8c5e63dbc6268610e3c8e217154" dependencies = [ "devise", "glob", @@ -4542,9 +4567,9 @@ dependencies = [ [[package]] name = "rocket_http" -version = "0.5.3" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92f626b274f1d3ade7e1162782e99dd920d04f797ea820ef75f3ffa5e8c2b78f" +checksum = "e87495dd15914c130bd1f90bba3c53f2b32535fc3b0203bf7a885c1259d973a3" dependencies = [ "cookie", "either", @@ -4886,6 +4911,12 @@ version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" +[[package]] +name = "send_wrapper" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" + [[package]] name = "serde" version = "1.0.229" @@ -5844,9 +5875,9 @@ dependencies = [ [[package]] name = "ucd-trie" -version = "0.1.7" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" +checksum = "8f20bdbfc9915686faa18fb5bbe8b4552778505defbf9f12289beefbc44092a6" [[package]] name = "uncased" diff --git a/Cargo.toml b/Cargo.toml index 7edc8a63..4b01ff63 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -82,7 +82,7 @@ num-derive = "0.5.1" bigdecimal = "0.4.11" # Web framework -rocket = { version = "0.5.3", default-features = false, features = ["json", "tls"] } +rocket = { version = "0.5.4", default-features = false, features = ["json", "tls"] } rocket_ws = { version = "0.2.0" } # WebSockets libraries @@ -270,8 +270,8 @@ aws-config = { version = "1.13.3", optional = true, default-features = false, fe ] } aws-credential-types = { version = "1.3.1", optional = true } aws-smithy-runtime-api = { version = "1.22.0", optional = true } -reqsign-aws-v4 = { version = "3.3.1", optional = true } -reqsign-core = { version = "3.3.2", optional = true } +reqsign-aws-v4 = { version = "3.4.0", optional = true } +reqsign-core = { version = "3.3.3", optional = true } # Strip debuginfo from the release builds # The debug symbols are to provide better panic traces diff --git a/src/api/icons.rs b/src/api/icons.rs index 7e396a3b..e788d6b0 100644 --- a/src/api/icons.rs +++ b/src/api/icons.rs @@ -13,7 +13,11 @@ use reqwest::{ Client, Response, header::{self, HeaderMap, HeaderValue}, }; -use rocket::{Route, http::ContentType, response::Redirect}; +use rocket::{ + Route, + http::ContentType, + response::{Redirect, status::NotFound}, +}; use svg_hush::{Filter, data_url_filter}; use crate::{ @@ -106,33 +110,21 @@ fn icon_external(host: &str) -> Cached> { } #[get("//icon.png")] -async fn icon_internal(host: &str) -> Cached<(ContentType, Vec)> { - const FALLBACK_ICON: &[u8] = include_bytes!("../static/images/fallback-icon.png"); +async fn icon_internal(host: &str) -> Result)>, Cached>> { + let not_found = || Cached::ttl(NotFound(()), CONFIG.icon_cache_negttl(), true); let Ok(host) = get_valid_host(host) else { warn!("Invalid host: {}", host.escape_debug()); - return Cached::ttl( - (ContentType::new("image", "png"), FALLBACK_ICON.to_vec()), - CONFIG.icon_cache_negttl(), - true, - ); + return Err(not_found()); }; if should_block_host(&host).is_err() { warn!("Blocked address: {host}"); - return Cached::ttl( - (ContentType::new("image", "png"), FALLBACK_ICON.to_vec()), - CONFIG.icon_cache_negttl(), - true, - ); + return Err(not_found()); } - match get_icon(&host.to_string()).await { - Some((icon, icon_type)) => { - Cached::ttl((ContentType::new("image", icon_type), icon), CONFIG.icon_cache_ttl(), true) - } - _ => Cached::ttl((ContentType::new("image", "png"), FALLBACK_ICON.to_vec()), CONFIG.icon_cache_negttl(), true), - } + let (icon, icon_type) = get_icon(&host.to_string()).await.ok_or_else(not_found)?; + Ok(Cached::ttl((ContentType::new("image", icon_type), icon), CONFIG.icon_cache_ttl(), true)) } async fn get_icon(domain: &str) -> Option<(Vec, String)> { diff --git a/src/static/global_domains.json b/src/static/global_domains.json index 3b13a3e9..213a8a20 100644 --- a/src/static/global_domains.json +++ b/src/static/global_domains.json @@ -1,31 +1,4 @@ [ - { - "type": 2, - "domains": [ - "ameritrade.com", - "tdameritrade.com" - ], - "excluded": false - }, - { - "type": 3, - "domains": [ - "bankofamerica.com", - "bofa.com", - "mbna.com", - "usecfo.com" - ], - "excluded": false - }, - { - "type": 4, - "domains": [ - "sprint.com", - "sprintpcs.com", - "nextel.com" - ], - "excluded": false - }, { "type": 0, "domains": [ @@ -43,15 +16,6 @@ ], "excluded": false }, - { - "type": 5, - "domains": [ - "wellsfargo.com", - "wf.com", - "wellsfargoadvisors.com" - ], - "excluded": false - }, { "type": 6, "domains": [ @@ -61,40 +25,6 @@ ], "excluded": false }, - { - "type": 7, - "domains": [ - "accountonline.com", - "citi.com", - "citibank.com", - "citicards.com", - "citibankonline.com" - ], - "excluded": false - }, - { - "type": 8, - "domains": [ - "cnet.com", - "cnettv.com", - "com.com", - "download.com", - "news.com", - "search.com", - "upload.com" - ], - "excluded": false - }, - { - "type": 9, - "domains": [ - "bananarepublic.com", - "gap.com", - "oldnavy.com", - "piperlime.com" - ], - "excluded": false - }, { "type": 10, "domains": [ @@ -116,32 +46,6 @@ ], "excluded": false }, - { - "type": 11, - "domains": [ - "ua2go.com", - "ual.com", - "united.com", - "unitedwifi.com" - ], - "excluded": false - }, - { - "type": 12, - "domains": [ - "overture.com", - "yahoo.com" - ], - "excluded": false - }, - { - "type": 13, - "domains": [ - "zonealarm.com", - "zonelabs.com" - ], - "excluded": false - }, { "type": 14, "domains": [ @@ -150,39 +54,6 @@ ], "excluded": false }, - { - "type": 15, - "domains": [ - "avon.com", - "youravon.com" - ], - "excluded": false - }, - { - "type": 16, - "domains": [ - "diapers.com", - "soap.com", - "wag.com", - "yoyo.com", - "beautybar.com", - "casa.com", - "afterschool.com", - "vine.com", - "bookworm.com", - "look.com", - "vinemarket.com" - ], - "excluded": false - }, - { - "type": 17, - "domains": [ - "1800contacts.com", - "800contacts.com" - ], - "excluded": false - }, { "type": 18, "domains": [ @@ -208,149 +79,6 @@ ], "excluded": false }, - { - "type": 19, - "domains": [ - "cox.com", - "cox.net", - "coxbusiness.com" - ], - "excluded": false - }, - { - "type": 20, - "domains": [ - "mynortonaccount.com", - "norton.com" - ], - "excluded": false - }, - { - "type": 21, - "domains": [ - "verizon.com", - "verizon.net" - ], - "excluded": false - }, - { - "type": 22, - "domains": [ - "rakuten.com", - "buy.com" - ], - "excluded": false - }, - { - "type": 23, - "domains": [ - "siriusxm.com", - "sirius.com" - ], - "excluded": false - }, - { - "type": 24, - "domains": [ - "ea.com", - "origin.com", - "play4free.com", - "tiberiumalliance.com" - ], - "excluded": false - }, - { - "type": 25, - "domains": [ - "37signals.com", - "basecamp.com", - "basecamphq.com", - "highrisehq.com" - ], - "excluded": false - }, - { - "type": 26, - "domains": [ - "steampowered.com", - "steamcommunity.com", - "steamgames.com" - ], - "excluded": false - }, - { - "type": 27, - "domains": [ - "chart.io", - "chartio.com" - ], - "excluded": false - }, - { - "type": 28, - "domains": [ - "gotomeeting.com", - "citrixonline.com" - ], - "excluded": false - }, - { - "type": 29, - "domains": [ - "gogoair.com", - "gogoinflight.com" - ], - "excluded": false - }, - { - "type": 30, - "domains": [ - "mysql.com", - "oracle.com" - ], - "excluded": false - }, - { - "type": 31, - "domains": [ - "discover.com", - "discovercard.com" - ], - "excluded": false - }, - { - "type": 32, - "domains": [ - "dcu.org", - "dcu-online.org" - ], - "excluded": false - }, - { - "type": 33, - "domains": [ - "healthcare.gov", - "cuidadodesalud.gov", - "cms.gov" - ], - "excluded": false - }, - { - "type": 34, - "domains": [ - "pepco.com", - "pepcoholdings.com" - ], - "excluded": false - }, - { - "type": 35, - "domains": [ - "century21.com", - "21online.com" - ], - "excluded": false - }, { "type": 36, "domains": [ @@ -360,38 +88,6 @@ ], "excluded": false }, - { - "type": 37, - "domains": [ - "cricketwireless.com", - "aiowireless.com" - ], - "excluded": false - }, - { - "type": 38, - "domains": [ - "mandtbank.com", - "mtb.com" - ], - "excluded": false - }, - { - "type": 39, - "domains": [ - "dropbox.com", - "getdropbox.com" - ], - "excluded": false - }, - { - "type": 40, - "domains": [ - "snapfish.com", - "snapfish.ca" - ], - "excluded": false - }, { "type": 41, "domains": [ @@ -402,33 +98,6 @@ ], "excluded": false }, - { - "type": 42, - "domains": [ - "playstation.com", - "sonyentertainmentnetwork.com" - ], - "excluded": false - }, - { - "type": 43, - "domains": [ - "mercadolivre.com", - "mercadolivre.com.br", - "mercadolibre.com", - "mercadolibre.com.ar", - "mercadolibre.com.mx" - ], - "excluded": false - }, - { - "type": 44, - "domains": [ - "zendesk.com", - "zopim.com" - ], - "excluded": false - }, { "type": 45, "domains": [ @@ -437,60 +106,6 @@ ], "excluded": false }, - { - "type": 46, - "domains": [ - "railnation.ru", - "railnation.de", - "rail-nation.com", - "railnation.gr", - "railnation.us", - "trucknation.de", - "traviangames.com" - ], - "excluded": false - }, - { - "type": 47, - "domains": [ - "wpcu.coop", - "wpcuonline.com" - ], - "excluded": false - }, - { - "type": 48, - "domains": [ - "mathletics.com", - "mathletics.com.au", - "mathletics.co.uk" - ], - "excluded": false - }, - { - "type": 49, - "domains": [ - "discountbank.co.il", - "telebank.co.il" - ], - "excluded": false - }, - { - "type": 50, - "domains": [ - "mi.com", - "xiaomi.com" - ], - "excluded": false - }, - { - "type": 52, - "domains": [ - "postepay.it", - "poste.it" - ], - "excluded": false - }, { "type": 51, "domains": [ @@ -499,15 +114,6 @@ ], "excluded": false }, - { - "type": 53, - "domains": [ - "skysports.com", - "skybet.com", - "skyvegas.com" - ], - "excluded": false - }, { "type": 54, "domains": [ @@ -519,62 +125,6 @@ ], "excluded": false }, - { - "type": 55, - "domains": [ - "pokemon-gl.com", - "pokemon.com" - ], - "excluded": false - }, - { - "type": 56, - "domains": [ - "myuv.com", - "uvvu.com" - ], - "excluded": false - }, - { - "type": 58, - "domains": [ - "mdsol.com", - "imedidata.com" - ], - "excluded": false - }, - { - "type": 57, - "domains": [ - "bank-yahav.co.il", - "bankhapoalim.co.il" - ], - "excluded": false - }, - { - "type": 59, - "domains": [ - "sears.com", - "shld.net" - ], - "excluded": false - }, - { - "type": 60, - "domains": [ - "xiami.com", - "alipay.com" - ], - "excluded": false - }, - { - "type": 61, - "domains": [ - "belkin.com", - "seedonk.com" - ], - "excluded": false - }, { "type": 62, "domains": [ @@ -583,14 +133,6 @@ ], "excluded": false }, - { - "type": 63, - "domains": [ - "shopify.com", - "myshopify.com" - ], - "excluded": false - }, { "type": 64, "domains": [ @@ -620,30 +162,6 @@ ], "excluded": false }, - { - "type": 65, - "domains": [ - "techdata.com", - "techdata.ch" - ], - "excluded": false - }, - { - "type": 66, - "domains": [ - "schwab.com", - "schwabplan.com" - ], - "excluded": false - }, - { - "type": 68, - "domains": [ - "tesla.com", - "teslamotors.com" - ], - "excluded": false - }, { "type": 69, "domains": [ @@ -654,31 +172,6 @@ ], "excluded": false }, - { - "type": 70, - "domains": [ - "taxact.com", - "taxactonline.com" - ], - "excluded": false - }, - { - "type": 71, - "domains": [ - "mediawiki.org", - "wikibooks.org", - "wikidata.org", - "wikimedia.org", - "wikinews.org", - "wikipedia.org", - "wikiquote.org", - "wikisource.org", - "wikiversity.org", - "wikivoyage.org", - "wiktionary.org" - ], - "excluded": false - }, { "type": 72, "domains": [ @@ -738,38 +231,6 @@ ], "excluded": false }, - { - "type": 73, - "domains": [ - "eventbrite.at", - "eventbrite.be", - "eventbrite.ca", - "eventbrite.ch", - "eventbrite.cl", - "eventbrite.co", - "eventbrite.co.nz", - "eventbrite.co.uk", - "eventbrite.com", - "eventbrite.com.ar", - "eventbrite.com.au", - "eventbrite.com.br", - "eventbrite.com.mx", - "eventbrite.com.pe", - "eventbrite.de", - "eventbrite.dk", - "eventbrite.es", - "eventbrite.fi", - "eventbrite.fr", - "eventbrite.hk", - "eventbrite.ie", - "eventbrite.it", - "eventbrite.nl", - "eventbrite.pt", - "eventbrite.se", - "eventbrite.sg" - ], - "excluded": false - }, { "type": 74, "domains": [ @@ -791,56 +252,6 @@ ], "excluded": false }, - { - "type": 76, - "domains": [ - "envato.com", - "themeforest.net", - "codecanyon.net", - "videohive.net", - "audiojungle.net", - "graphicriver.net", - "photodune.net", - "3docean.net" - ], - "excluded": false - }, - { - "type": 77, - "domains": [ - "x10hosting.com", - "x10premium.com" - ], - "excluded": false - }, - { - "type": 78, - "domains": [ - "dnsomatic.com", - "opendns.com", - "umbrella.com" - ], - "excluded": false - }, - { - "type": 79, - "domains": [ - "cagreatamerica.com", - "canadaswonderland.com", - "carowinds.com", - "cedarfair.com", - "cedarpoint.com", - "dorneypark.com", - "kingsdominion.com", - "knotts.com", - "miadventure.com", - "schlitterbahn.com", - "valleyfair.com", - "visitkingsisland.com", - "worldsoffun.com" - ], - "excluded": false - }, { "type": 80, "domains": [ @@ -849,23 +260,6 @@ ], "excluded": false }, - { - "type": 81, - "domains": [ - "discordapp.com", - "discord.com" - ], - "excluded": false - }, - { - "type": 82, - "domains": [ - "netcup.de", - "netcup.eu", - "customercontrolpanel.de" - ], - "excluded": false - }, { "type": 83, "domains": [ @@ -894,14 +288,6 @@ ], "excluded": false }, - { - "type": 84, - "domains": [ - "sonyentertainmentnetwork.com", - "sony.com" - ], - "excluded": false - }, { "type": 85, "domains": [ @@ -911,37 +297,6 @@ ], "excluded": false }, - { - "type": 86, - "domains": [ - "ubisoft.com", - "ubi.com" - ], - "excluded": false - }, - { - "type": 87, - "domains": [ - "transferwise.com", - "wise.com" - ], - "excluded": false - }, - { - "type": 88, - "domains": [ - "takeaway.com", - "just-eat.dk", - "just-eat.no", - "just-eat.fr", - "just-eat.ch", - "lieferando.de", - "lieferando.at", - "thuisbezorgd.nl", - "pyszne.pl" - ], - "excluded": false - }, { "type": 89, "domains": [ @@ -954,25 +309,6 @@ ], "excluded": false }, - { - "type": 90, - "domains": [ - "pinterest.com", - "pinterest.com.au", - "pinterest.cl", - "pinterest.de", - "pinterest.dk", - "pinterest.es", - "pinterest.fr", - "pinterest.co.uk", - "pinterest.jp", - "pinterest.co.kr", - "pinterest.nz", - "pinterest.pt", - "pinterest.se" - ], - "excluded": false - }, { "type": 91, "domains": [ diff --git a/src/static/images/fallback-icon.png b/src/static/images/fallback-icon.png deleted file mode 100644 index 7fb0b454201feacfe6906067231d545044e43b53..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 483 zcmV<90UZ8`P)I#ZQHhO+YW2@&+I(E{dUJE=TZ`(G{y;D^MhCJ zYEh*mB@?ph9KLgc@!G&DStmYooo_m8LRLv+d|}RVJEEEd(33$TUM=o&W_;lUCnx$z zO>vCLA6Y~sq5wxUmx$)#u$~@~#h1Bo53D|0G(z{Vj%Dn(ZJZ*Hh%da$%uwRraZXl& zCKIv;{uw)DkN~a6H&+bC1qnlk47%Dme>8*>EOvPWSQ$n!U_$!9DNg%|*f@>}uWczu z#uaqwXVZDMT-)0ijS~mubgek7KCgryR>i8Y)f%&(Mt)}5ZCj`|myxv7?sHYp$~-8Kd)Z*p83M zmarjuntNO)PqG~AbCfs;>Y5002ovPDHLkV1g04+9&`3 diff --git a/src/static/scripts/datatables.css b/src/static/scripts/datatables.css index 81827eed..35bafdb1 100644 --- a/src/static/scripts/datatables.css +++ b/src/static/scripts/datatables.css @@ -4,10 +4,10 @@ * * To rebuild or modify this file with the latest versions of the included * software please visit: - * https://datatables.net/download/#bs5/dt-3.1.4 + * https://datatables.net/download/#bs5/dt-3.1.5 * * Included libraries: - * DataTables 3.1.4 + * DataTables 3.1.5 */ /*! DataTables Bootstrap 5 integration diff --git a/src/static/scripts/datatables.js b/src/static/scripts/datatables.js index 8dc93bd6..f47b2d63 100644 --- a/src/static/scripts/datatables.js +++ b/src/static/scripts/datatables.js @@ -4,13 +4,13 @@ * * To rebuild or modify this file with the latest versions of the included * software please visit: - * https://datatables.net/download/#bs5/dt-3.1.4 + * https://datatables.net/download/#bs5/dt-3.1.5 * * Included libraries: - * DataTables 3.1.4 + * DataTables 3.1.5 */ -/*! DataTables 3.1.4 +/*! DataTables 3.1.5 * Copyright (c) SpryMedia Ltd - datatables.net/license */ @@ -22,9 +22,6 @@ }); } else if (typeof exports === 'object') { - // CommonJS - var cjsRequires = function (root) { }; - if (typeof window === 'undefined') { module.exports = function (root) { if (! root) { @@ -32,13 +29,11 @@ // root. This will give an error otherwise root = window; } - - cjsRequires(root); + return factory(root, root.document); }; } else { - cjsRequires(window); module.exports = factory(window, window.document); } } @@ -276,7 +271,7 @@ function dom(input) { * @returns true if an HTML element was passed in */ function element(input) { - return typeof input === 'object' && input.nodeName; + return input && typeof input === 'object' && input.nodeName; } /** * Check if a value is empty or not. Note that a string with `-` is considered @@ -767,7 +762,7 @@ function ajax(optionsIn) { // noop } } - if (statusText === 'success') { + if (statusText === 'success' || statusText === 'nocontent') { callback(options.success, responseData, statusText, xhr); } else { @@ -8720,7 +8715,7 @@ const ext = { /** * DataTables build type (expanded by the download builder) */ - builder: 'bs5/dt-3.1.4', + builder: 'bs5/dt-3.1.5', /** * Buttons. For use with the Buttons extension for DataTables. This is * defined here so other extensions can define buttons regardless of load @@ -8866,7 +8861,7 @@ const ext = { * Software version * @type string */ - version: '3.1.4' + version: '3.1.5' }; // // Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts @@ -9535,8 +9530,10 @@ register('ready()', function (fn) { fn.call(api); } else { - this.on('init.dt.DT', function () { - fn.call(api); + this.on('init.dt.DT', function (e, s) { + if (ctx.includes(s)) { + fn.call(api); + } }); } }); @@ -10803,14 +10800,12 @@ function selectRows(settings, selector, opts) { } } // ID selector. Want to always be able to select rows by id, regardless - // of if the tr element has been created or not, so can't rely upon - // jQuery here - hence a custom implementation. This does not match - // Sizzle's fast selector or HTML4 - in HTML5 the ID can be anything, - // but to select it using a CSS selector engine (like Sizzle or - // querySelect) it would need to need to be escaped for some characters. - // DataTables simplifies this for row selectors since you can select - // only a row. A # indicates an id any anything that follows is the id - - // unescaped. + // of if the tr element has been created or not, so can't rely upon the + // DOM here - hence a custom implementation. In HTML5 the ID can be + // anything, but to select it using a CSS selector engine it would need + // to need to be escaped for some characters. DataTables simplifies this + // for row selectors since you can select only a row. A # indicates an + // id any anything that follows is the id - unescaped. if (typeof sel === 'string') { if (sel.charAt(0) === '#') { // get row index from id @@ -10818,6 +10813,13 @@ function selectRows(settings, selector, opts) { if (rowObj !== undefined) { return [rowObj.idx]; } + // If it was a basic ID selector, and it didn't match, in the + // above, then return here, as it won't match at all. Note that + // this check is slightly less restrictive than CSS IDs, in that + // it allows a leading digit or dash to be used. + if (sel.match(/^#[a-zA-Z0-9_-]*$/)) { + return []; + } // need to fall through to selector in case there is DOM id that // matches } @@ -12506,19 +12508,22 @@ const DataTable = function (selector, options) { if (factory(selector, options)) { return DataTable; } - // Allow access to the API from the core class - this.api = () => { - return new Api(selector); - }; // Backwards compatibility with this "class" being exposed as // `$().dataTable()`. We can't simply provide that as a wrapper, as there // are properties on this class which are expected to be exposed. if (typeof this.jquery === 'string') { + let els = this.toArray(); // Typescript doesn't like the `return api` from the constructor, but is // it valid Javascript, and allows backwards compatibility, hence the any - new DataTable(this.toArray(), selector); // note argument shift + new DataTable(els, selector); // note argument shift + // jQuery specific api method + this.api = () => new Api(els); return this; } + // Allow access to the API from the core class + this.api = () => { + return new Api(selector); + }; var emptyInit = options === undefined; let tableEls = Dom.s(selector); let len = tableEls.count(); @@ -12963,13 +12968,6 @@ return DataTable; }); } else if (typeof exports === 'object') { - // CommonJS - var cjsRequires = function (root) { - if (! root.DataTable) { - require('datatables.net')(root); - } - }; - if (typeof window === 'undefined') { module.exports = function (root) { if (! root) { @@ -12977,14 +12975,20 @@ return DataTable; // root. This will give an error otherwise root = window; } + + var DataTable = root.DataTable ? + root.DataTable : + require('datatables.net')(root); - cjsRequires(root); - return factory(root, root.document, root.DataTable); + return factory(root, root.document, DataTable); }; } else { - cjsRequires(window); - module.exports = factory(window, window.document, window.DataTable); + var DataTable = window.DataTable ? + window.DataTable : + require('datatables.net'); + + module.exports = factory(window, window.document, DataTable); } } else { From 2c9b7c06a9cbeda00e74949624740b6f0b852088 Mon Sep 17 00:00:00 2001 From: Dan Molik Date: Sun, 22 Nov 2026 17:07:36 -0500 Subject: [PATCH 02/12] Return an error instead of panicking on invalid attachment/cipher input (#7989) Several handlers pass request-controlled values to the database and .expect() the result, so a value the database rejects (for example a string containing a NUL byte, which PostgreSQL refuses in text columns) turns a normal error into a panic: - POST /api/ciphers//attachment/v2 with a NUL byte in the attachment key or file name - POST/PUT /api/ciphers/move with a NUL byte in an ids entry (IDs from a JSON body are not validated the way UuidFromParam validates path params) On the default unwinding builds Rocket catches this and returns 500; on builds compiled with panic=abort it terminates the process. Any authenticated user can trigger it, including on their own cipher. Make the attachment saves propagate the error (the enclosing functions already return Result), and validate the move handler's cipher IDs up front, so both return a normal error response instead of panicking. Co-authored-by: Voucher Security --- src/api/core/ciphers.rs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index 3df0ce74..7fa51363 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -1697,7 +1697,7 @@ async fn post_attachment_v2( let attachment_id = crypto::generate_attachment_id(); let attachment = Attachment::new(attachment_id.clone(), cipher.uuid.clone(), data.file_name, file_size, Some(data.key)); - attachment.save(&conn).await.expect("Error saving attachment"); + attachment.save(&conn).await?; notify_attachment_created(&cipher, &headers, &conn, &nt).await; let url = format!("/ciphers/{}/attachment/{attachment_id}", cipher.uuid); @@ -1791,7 +1791,7 @@ async fn save_attachment( if size != attachment.file_size { // Update the attachment with the actual file size. attachment.file_size = size; - attachment.save(&conn).await.expect("Error updating attachment"); + attachment.save(&conn).await?; } } else { attachment.delete(&conn).await.ok(); @@ -1813,7 +1813,7 @@ async fn save_attachment( } let attachment = Attachment::new(file_id.clone(), cipher_id.clone(), encrypted_filename.unwrap(), size, data.key); - attachment.save(&conn).await.expect("Error saving attachment"); + attachment.save(&conn).await?; } save_temp_file(&PathType::Attachments, &format!("{cipher_id}/{file_id}"), data.data, true).await?; @@ -2205,6 +2205,16 @@ async fn move_cipher_selected( let data = data.into_inner(); let user_id = &headers.user.uuid; + // Validate the cipher IDs are well-formed before they reach the query. + // Unlike path parameters (UuidFromParam), IDs deserialized from a JSON body + // are not checked, so a malformed value (e.g. one containing a NUL byte) + // would otherwise reach the database and error out. + for cipher_id in &data.ids { + if uuid::Uuid::parse_str(cipher_id.as_ref()).is_err() { + err!("Invalid cipher ID provided") + } + } + if let Some(ref folder_id) = data.folder_id && Folder::find_by_uuid_and_user(folder_id, user_id, &conn).await.is_none() { From 0a4909cfe03d2020af39b2ea508fc1afb46d8c1a Mon Sep 17 00:00:00 2001 From: Steven Haigh Date: Mon, 23 Nov 2026 09:09:18 +1100 Subject: [PATCH 03/12] Start support for sync (un)lock in 2026.11.0 onwards (#7986) * Start support for sync (un)lock in 2026.11.0 onwards https://bitwarden.com/help/synchronized-unlock/ * Revert change to 2026.11.0 web version --- .env.template | 1 + src/config.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/.env.template b/.env.template index cc195375..b21df4e9 100644 --- a/.env.template +++ b/.env.template @@ -415,6 +415,7 @@ ## - "pm-27278-v2-password-registration": Register new accounts with v2 encryption. (Web >= 2026.6.4, Desktop/Browser/CLI >= 2026.7.0, Android >= 2026.4.1, iOS >= 2026.5.1) ## - "enable-account-encryption-v2-jit-password-registration": Give SSO users who set their master password on their first login v2 encryption. (Web >= 2026.1.1, Desktop/Browser/CLI >= 2026.1.0, Android >= 2026.4.1, iOS >= 2026.6.0) ## These two flags can't be undone: a v2 account stays v2, and it can only log in from clients that are 2026.10.1 or newer (2026.10.2 for the desktop app), so the versions above are only enough to create one. +## - "innovation-sprint-shared-unlock-part-2": Enable shared unlock between extension / web / desktop in >= 2026.11.0 # EXPERIMENTAL_CLIENT_FEATURE_FLAGS= ## Require new device emails. When a user logs in an email is required to be sent. diff --git a/src/config.rs b/src/config.rs index 408b0b9b..717b7e9c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1502,6 +1502,7 @@ pub const SUPPORTED_FEATURE_FLAGS: &[&str] = &[ "windows-desktop-autotype", "windows-desktop-autotype-ga", // Key Management Team + "innovation-sprint-shared-unlock-part-2", "biometrics-sdk-ipc", "windows-native-credential-sync", "macos-native-credential-sync", From c6e7da4b5c36495568923694031d5406deb3c736 Mon Sep 17 00:00:00 2001 From: Tom <83423411+tom27052006@users.noreply.github.com> Date: Mon, 23 Nov 2026 00:43:45 +0100 Subject: [PATCH 04/12] Add the Send controls policy (policy 21) (#7519) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniel GarcĂ­a --- .env.template | 2 + src/api/core/organizations.rs | 21 +- src/api/core/sends.rs | 59 +---- src/config.rs | 2 + src/db/models/org_policy.rs | 53 +--- src/db/models/org_policy/send_controls.rs | 289 ++++++++++++++++++++++ 6 files changed, 328 insertions(+), 98 deletions(-) create mode 100644 src/db/models/org_policy/send_controls.rs diff --git a/.env.template b/.env.template index b21df4e9..425b3396 100644 --- a/.env.template +++ b/.env.template @@ -406,6 +406,8 @@ ## - "pm-30529-webauthn-related-origins": Allow passkeys stored in the vault to be used on related origins listed in a site's /.well-known/webauthn file (Browser >= 2026.2.0) ## - "pm-32009-new-item-types": Enable new item types: Bank Account, Driver's License, and Passport (Clients >= 2026.4.0) ## - "pm-34171-card-scanner": Enable the new card scanner feature on mobile (Android >= 2026.4.1, iOS >= 2026.4.1) +## - "pm-31885-send-controls": Use the Send controls policy, which replaces the Remove Send and Send options policies (Web vault >= 2026.4.0, Android >= 2026.8.0, iOS >= 2026.7.1) +## The web vault, browser, desktop and CLI clients after 2026.10 always use it, only older versions and the mobile apps still read this flag. ## - "enable-basic-auth-response": Enable HTTP Basic Auth autofill in the browser extension (Browser >= 2026.9.0) ## - "undetermined-cipher-scenario-logic": Enable the rewritten add/update login notification triggering logic in the browser extension (Browser >= 2026.2.0) ## - "biometrics-sdk-ipc": Enable biometric unlock over the SDK IPC framework (Desktop >= 2026.9.0, Browser >= 2026.9.0) diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index 2e19fa82..6c29c6dc 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -2316,7 +2316,10 @@ async fn list_policies(org_id: OrganizationId, headers: ManagePoliciesHeaders, c if org_id != headers.org_id { err!("Organization not found", "Organization id's do not match"); } - let policies = OrgPolicy::find_by_org(&org_id, &conn).await; + let mut policies = OrgPolicy::find_by_org(&org_id, &conn).await; + if !policies.iter().any(|p| p.has_type(OrgPolicyType::SendControls)) { + policies.push(OrgPolicy::synthesize_send_controls(&org_id, &policies)); + } let policies_json: Vec = policies.iter().map(OrgPolicy::to_json).collect(); Ok(Json(json!({ @@ -2387,9 +2390,13 @@ async fn get_policy(org_id: OrganizationId, pol_type: i32, headers: ManagePolici err!("Invalid or unsupported policy type") }; - let policy = OrgPolicy::find_by_org_and_type(&org_id, pol_type_enum, &conn) - .await - .unwrap_or_else(|| OrgPolicy::new(org_id.clone(), pol_type_enum, false, "null".to_owned())); + let policy = match OrgPolicy::find_by_org_and_type(&org_id, pol_type_enum, &conn).await { + Some(p) => p, + None if pol_type_enum == OrgPolicyType::SendControls => { + OrgPolicy::synthesize_send_controls(&org_id, &OrgPolicy::find_by_org(&org_id, &conn).await) + } + None => OrgPolicy::new(org_id.clone(), pol_type_enum, false, "null".to_owned()), + }; Ok(Json(policy.to_json())) } @@ -2529,13 +2536,15 @@ async fn put_policy( .await?; } + let policy_data = OrgPolicy::send_policy_data(pol_type_enum, data.data)?; + let mut policy = match current_policy { Some(p) => p, None => OrgPolicy::new(org_id.clone(), pol_type_enum, false, "{}".to_owned()), }; policy.enabled = data.enabled; - policy.data = serde_json::to_string(&data.data)?; + policy.data = serde_json::to_string(&policy_data)?; policy.save(&conn).await?; log_event( @@ -2549,6 +2558,8 @@ async fn put_policy( ) .await; + OrgPolicy::sync_send_policies(&policy, &conn).await?; + Ok(Json(policy.to_json())) } diff --git a/src/api/core/sends.rs b/src/api/core/sends.rs index a6d5f4d8..afe27f3d 100644 --- a/src/api/core/sends.rs +++ b/src/api/core/sends.rs @@ -15,7 +15,7 @@ use crate::{ config::PathType, db::{ DbConn, DbPool, - models::{Device, OrgPolicy, OrgPolicyType, Send, SendFileId, SendId, SendType, UserId}, + models::{Device, OrgPolicy, Send, SendFileId, SendId, SendType, UserId}, }, util::{NumberOrString, save_temp_file}, }; @@ -89,40 +89,16 @@ pub struct SendData { pub id: Option, } -/// Enforces the `Disable Send` policy. A non-owner/admin user belonging to -/// an org with this policy enabled isn't allowed to create new Sends or -/// modify existing ones, but is allowed to delete them. -/// -/// Ref: https://bitwarden.com/help/article/policies/#disable-send +/// Enforces the Send policies (`Send controls` and the legacy `Disable Send` and `Send Options` it +/// absorbs) on the Send as it would be saved. Deleting a Send is always allowed. /// /// There is also a Vaultwarden-specific `sends_allowed` config setting that /// controls this policy globally. -async fn enforce_disable_send_policy(headers: &Headers, conn: &DbConn) -> EmptyResult { - let user_id = &headers.user.uuid; - if !CONFIG.sends_allowed() - || OrgPolicy::is_applicable_to_user(user_id, OrgPolicyType::DisableSend, None, conn).await - { +async fn enforce_send_policy(send: &Send, headers: &Headers, conn: &DbConn) -> EmptyResult { + if !CONFIG.sends_allowed() { err!("Due to an Enterprise Policy, you are only able to delete an existing Send.") } - Ok(()) -} - -/// Enforces the `DisableHideEmail` option of the `Send Options` policy. -/// A non-owner/admin user belonging to an org with this option enabled isn't -/// allowed to hide their email address from the recipient of a Bitwarden Send, -/// but is allowed to remove this option from an existing Send. -/// -/// Ref: https://bitwarden.com/help/article/policies/#send-options -async fn enforce_disable_hide_email_policy(data: &SendData, headers: &Headers, conn: &DbConn) -> EmptyResult { - let user_id = &headers.user.uuid; - let hide_email = data.hide_email.unwrap_or(false); - if hide_email && OrgPolicy::is_hide_email_disabled(user_id, conn).await { - err!( - "Due to an Enterprise Policy, you are not allowed to hide your email address \ - from recipients when creating or editing a Send." - ) - } - Ok(()) + OrgPolicy::check_send(&headers.user.uuid, send, conn).await } /// Stores a text Send that is already encrypted, as [`create_send`] does, for the test seeder (`unsafe_test_mode`). @@ -205,16 +181,14 @@ async fn get_send(send_id: SendId, headers: Headers, conn: DbConn) -> JsonResult #[post("/sends", data = "")] async fn post_send(data: Json, headers: Headers, conn: DbConn, nt: Notify<'_>) -> JsonResult { - enforce_disable_send_policy(&headers, &conn).await?; - let data: SendData = data.into_inner(); - enforce_disable_hide_email_policy(&data, &headers, &conn).await?; if data.r#type == SendType::File as i32 { err!("File sends should use /api/sends/file/v2") } - let mut send = create_send(data, headers.user.uuid)?; + let mut send = create_send(data, headers.user.uuid.clone())?; + enforce_send_policy(&send, &headers, &conn).await?; send.save(&conn).await?; nt.send_send_update( UpdateType::SyncSendCreate, @@ -236,16 +210,12 @@ struct UploadDataV2<'f> { // Upstream: https://github.com/bitwarden/server/blob/9ebe16587175b1c0e9208f84397bb75d0d595510/src/Api/Tools/Controllers/SendsController.cs#L165 #[post("/sends/file/v2", data = "")] async fn post_send_file_v2(data: Json, headers: Headers, conn: DbConn) -> JsonResult { - enforce_disable_send_policy(&headers, &conn).await?; - let data = data.into_inner(); if data.r#type != SendType::File as i32 { err!("Send content is not a file"); } - enforce_disable_hide_email_policy(&data, &headers, &conn).await?; - let file_length = if let Some(m) = &data.file_length { m.into_i64()? } else { @@ -276,7 +246,8 @@ async fn post_send_file_v2(data: Json, headers: Headers, conn: DbConn) err!("Send storage limit exceeded with this file"); } - let mut send = create_send(data, headers.user.uuid)?; + let mut send = create_send(data, headers.user.uuid.clone())?; + enforce_send_policy(&send, &headers, &conn).await?; let file_id = crate::crypto::generate_send_file_id(); @@ -316,8 +287,6 @@ async fn post_send_file_v2_data( conn: DbConn, nt: Notify<'_>, ) -> EmptyResult { - enforce_disable_send_policy(&headers, &conn).await?; - let data = data.into_inner(); let Some(send) = Send::find_by_uuid_and_user(&send_id, &headers.user.uuid, &conn).await else { @@ -327,6 +296,7 @@ async fn post_send_file_v2_data( if send.atype != SendType::File as i32 { err!("Send is not a file type send."); } + enforce_send_policy(&send, &headers, &conn).await?; let Ok(send_data) = serde_json::from_str::(&send.data) else { err!("Unable to decode send data as json.") @@ -475,10 +445,7 @@ async fn download_send(send_id: SendId, file_id: SendFileId, t: &str) -> Option< #[put("/sends/", data = "")] async fn put_send(send_id: SendId, data: Json, headers: Headers, conn: DbConn, nt: Notify<'_>) -> JsonResult { - enforce_disable_send_policy(&headers, &conn).await?; - let data: SendData = data.into_inner(); - enforce_disable_hide_email_policy(&data, &headers, &conn).await?; let Some(mut send) = Send::find_by_uuid_and_user(&send_id, &headers.user.uuid, &conn).await else { err!("Send not found", "Send send_id is invalid or does not belong to user") @@ -541,6 +508,7 @@ async fn update_send_from_data( send.set_password(Some(&password)); } + enforce_send_policy(send, headers, conn).await?; send.save(conn).await?; if ut != UpdateType::None { nt.send_send_update(ut, send, &send.update_users_revision(conn).await, &headers.device, conn).await; @@ -569,13 +537,12 @@ async fn delete_send(send_id: SendId, headers: Headers, conn: DbConn, nt: Notify #[put("/sends//remove-password")] async fn put_remove_password(send_id: SendId, headers: Headers, conn: DbConn, nt: Notify<'_>) -> JsonResult { - enforce_disable_send_policy(&headers, &conn).await?; - let Some(mut send) = Send::find_by_uuid_and_user(&send_id, &headers.user.uuid, &conn).await else { err!("Send not found", "Invalid send uuid, or does not belong to user") }; send.set_password(None); + enforce_send_policy(&send, &headers, &conn).await?; send.save(&conn).await?; nt.send_send_update( UpdateType::SyncSendUpdate, diff --git a/src/config.rs b/src/config.rs index 717b7e9c..1291a5ce 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1512,6 +1512,8 @@ pub const SUPPORTED_FEATURE_FLAGS: &[&str] = &[ "pm-34171-card-scanner", // Platform Team "pm-30529-webauthn-related-origins", + // Tools Team: read by the clients up to 2026.10 and by the Android and iOS apps + "pm-31885-send-controls", // Vault Team "pm-32009-new-item-types", ]; diff --git a/src/db/models/org_policy.rs b/src/db/models/org_policy.rs index eed0740d..95346257 100644 --- a/src/db/models/org_policy.rs +++ b/src/db/models/org_policy.rs @@ -17,7 +17,9 @@ use crate::{ use super::{Membership, MembershipId, MembershipStatus, MembershipType, OrganizationId, TwoFactor, UserId}; -#[derive(Identifiable, Queryable, Insertable, AsChangeset)] +mod send_controls; + +#[derive(Clone, Identifiable, Queryable, Insertable, AsChangeset)] #[diesel(table_name = org_policies)] #[diesel(primary_key(uuid))] pub struct OrgPolicy { @@ -53,13 +55,13 @@ pub enum OrgPolicyType { // AutoConfirm = 18, // Not supported (not implemented yet) // BlockClaimedDomainAccountCreation = 19, // Not supported (Not AGPLv3 Licensed) OrganizationUserNotification = 20, - // SendControls = 21, // Not supported yet + SendControls = 21, FillAssist = 22, } // https://github.com/bitwarden/server/blob/9ebe16587175b1c0e9208f84397bb75d0d595510/src/Core/AdminConsole/Models/Data/Organizations/Policies/SendOptionsPolicyData.cs#L5 -#[derive(Deserialize)] -#[serde(rename_all = "camelCase")] +#[derive(Default, Deserialize, Serialize)] +#[serde(default, rename_all = "camelCase")] pub struct SendOptionsPolicyData { #[serde(rename = "disableHideEmail", alias = "DisableHideEmail")] pub disable_hide_email: bool, @@ -270,28 +272,6 @@ impl OrgPolicy { .await } - pub async fn find_confirmed_by_user_and_active_policy( - user_uuid: &UserId, - policy_type: OrgPolicyType, - conn: &DbConn, - ) -> Vec { - conn.run(move |conn| { - org_policies::table - .inner_join( - users_organizations::table.on(users_organizations::org_uuid - .eq(org_policies::org_uuid) - .and(users_organizations::user_uuid.eq(user_uuid))), - ) - .filter(users_organizations::status.eq(MembershipStatus::Confirmed as i32)) - .filter(org_policies::atype.eq(policy_type as i32)) - .filter(org_policies::enabled.eq(true)) - .select(org_policies::all_columns) - .load::(conn) - .expect("Error loading org_policy") - }) - .await - } - /// Returns true if the user belongs to an org that has enabled the specified policy type, /// and the user is not an owner or admin of that org. This is only useful for checking /// applicability of policy types that have these particular semantics. @@ -381,27 +361,6 @@ impl OrgPolicy { false } - /// Returns true if the user belongs to an org that has enabled the `DisableHideEmail` - /// option of the `Send Options` policy, and the user is not an owner or admin of that org. - pub async fn is_hide_email_disabled(user_uuid: &UserId, conn: &DbConn) -> bool { - for policy in Self::find_confirmed_by_user_and_active_policy(user_uuid, OrgPolicyType::SendOptions, conn).await - { - if let Some(user) = Membership::find_confirmed_by_user_and_org(user_uuid, &policy.org_uuid, conn).await - && user.atype < MembershipType::Admin - { - match serde_json::from_str::(&policy.data) { - Ok(opts) => { - if opts.disable_hide_email { - return true; - } - } - _ => error!("Failed to deserialize SendOptionsPolicyData: {}", policy.data), - } - } - } - false - } - pub async fn is_enabled_for_member(member_uuid: &MembershipId, policy_type: OrgPolicyType, conn: &DbConn) -> bool { if let Some(member) = Membership::find_by_uuid(member_uuid, conn).await && let Some(policy) = Self::find_by_org_and_type(&member.org_uuid, policy_type, conn).await diff --git a/src/db/models/org_policy/send_controls.rs b/src/db/models/org_policy/send_controls.rs new file mode 100644 index 00000000..c3fd5d6a --- /dev/null +++ b/src/db/models/org_policy/send_controls.rs @@ -0,0 +1,289 @@ +//! The Send controls policy (21) absorbs the legacy `Disable Send` (6) and `Send Options` (7) policies. +//! Like upstream, the three are kept in sync in both directions, so clients that only know the legacy +//! policies keep enforcing the same rules, and Sends are checked against all of them. +//! +//! https://github.com/bitwarden/server/tree/04a4d7548b07d18ab7327ddaae81a05fd893a820/src/Core/AdminConsole/OrganizationFeatures/Policies + +use chrono::TimeDelta; +use diesel::prelude::*; +use num_traits::FromPrimitive; +use serde::Deserialize; +use serde_json::Value; + +use super::{OrgPolicy, OrgPolicyType, SendOptionsPolicyData}; +use crate::{ + api::{ApiResult, EmptyResult}, + db::{ + DbConn, + models::{MembershipStatus, MembershipType, OrganizationId, Send, SendType, UserId}, + schema::{org_policies, users_organizations}, + }, +}; + +const SEND_POLICIES: [i32; 3] = + [OrgPolicyType::DisableSend as i32, OrgPolicyType::SendOptions as i32, OrgPolicyType::SendControls as i32]; + +// SendWhoCanAccessType. Specific people requires Sends with email verification, which are not supported. +const ACCESS_ANY: i32 = 0; +const ACCESS_PASSWORD: i32 = 1; +const ACCESS_SPECIFIC_PEOPLE: i32 = 2; + +// https://github.com/bitwarden/server/blob/04a4d7548b07d18ab7327ddaae81a05fd893a820/src/Core/AdminConsole/Models/Data/Organizations/Policies/SendControlsPolicyData.cs +#[derive(Default, Deserialize, Serialize)] +#[serde(default, rename_all = "camelCase")] +struct SendControlsPolicyData { + #[serde(alias = "DisableSend")] + disable_send: bool, + #[serde(alias = "DisableHideEmail")] + disable_hide_email: bool, + #[serde(alias = "WhoCanAccess")] + who_can_access: Option, + #[serde(alias = "AllowedDomains")] + allowed_domains: Option, + #[serde(alias = "DeletionHours")] + deletion_hours: Option, + #[serde(alias = "AllowedSendTypes")] + allowed_send_types: Option>, +} + +impl SendControlsPolicyData { + /// Validates the data an organization saves. Requiring email verification, which allowed domains + /// depend on, would leave members unable to create any Send, so it is refused. + fn parse(data: Option<&Value>) -> ApiResult { + let data = match Option::::deserialize(data.unwrap_or(&Value::Null)) { + Ok(data) => data.unwrap_or_default(), + Err(e) => err!(format!("Invalid Send controls policy data: {e}")), + }; + match data.who_can_access { + None | Some(ACCESS_ANY | ACCESS_PASSWORD) => (), + Some(ACCESS_SPECIFIC_PEOPLE) => { + err!("Sends with email verification are not supported, so that access type cannot be required") + } + Some(_) => err!("Invalid Send controls access type"), + } + if data.allowed_domains.is_some() { + err!("Allowed domains require Sends with email verification, which are not supported") + } + if data.deletion_hours.is_some_and(|hours| hours < 1) { + err!("The maximum lifetime of a Send has to be at least one hour") + } + // Current clients may also list Item Sends (2), which can not be created here. + if let Some(types) = &data.allowed_send_types + && (types.iter().any(|t| !(0..=2).contains(t)) + || !types.iter().any(|t| *t == SendType::Text as i32 || *t == SendType::File as i32)) + { + err!("The allowed Send types have to include Text or File") + } + Ok(data) + } + + /// Every organization's restrictions apply, so a less strict organization never relaxes a stricter + /// one, independent of the order the policies are loaded in. + fn merge(&mut self, other: Self) { + self.disable_send |= other.disable_send; + self.disable_hide_email |= other.disable_hide_email; + self.who_can_access = self.who_can_access.max(other.who_can_access); + self.deletion_hours = match (self.deletion_hours, other.deletion_hours) { + (Some(a), Some(b)) => Some(a.min(b)), + (a, b) => a.or(b), + }; + self.allowed_send_types = match (self.allowed_send_types.take(), other.allowed_send_types) { + (Some(a), Some(b)) => Some(a.into_iter().filter(|t| b.contains(t)).collect()), + (a, b) => a.or(b), + }; + } + + /// Checks the Send as it would be saved, like upstream's `SendValidationService`. + fn check_send(&self, send: &Send) -> EmptyResult { + if self.disable_send { + err!("Due to an Enterprise Policy, you are only able to delete an existing Send.") + } + if self.disable_hide_email && send.hide_email.unwrap_or(false) { + err!( + "Due to an Enterprise Policy, you are not allowed to hide your email address \ + from recipients when creating or editing a Send." + ) + } + if self.who_can_access == Some(ACCESS_PASSWORD) && send.password_hash.is_none() { + err!("Due to an Enterprise policy your Sends must be protected by password") + } + if let Some(types) = &self.allowed_send_types + && !types.contains(&send.atype) + { + let names: Vec<&str> = types + .iter() + .map(|t| match *t { + 0 => "Text", + 1 => "File", + _ => "Unknown", + }) + .collect(); + err!(format!("Due to an Enterprise policy your Sends must be of the following types: {}", names.join(", "))) + } + // Upstream allows for up to a minute of skew between the deletion and the creation date. + if let Some(hours) = self.deletion_hours + && send.deletion_date - send.creation_date - TimeDelta::minutes(1) > TimeDelta::hours(i64::from(hours)) + { + let (duration, unit) = if hours >= 24 { + (hours / 24, "day") + } else { + (hours, "hour") + }; + let plural = if duration > 1 { + "s" + } else { + "" + }; + err!(format!( + "Due to an Enterprise policy your Sends must have deletion dates no more than {duration} {unit}{plural} from their creation dates" + )) + } + Ok(()) + } +} + +/// Whether an enabled `Send Options` policy disables hiding the email. Unreadable data keeps the option on. +fn hide_email_disabled(policy: &OrgPolicy) -> bool { + policy.enabled + && serde_json::from_str::>(&policy.data).map_or_else( + |_| { + error!("Failed to deserialize SendOptionsPolicyData: {}", policy.data); + true + }, + |data| data.is_some_and(|d| d.disable_hide_email), + ) +} + +/// The options of the legacy policies, as Send controls holds them. A disabled `Send Options` policy +/// counts as off, so a later save of Send controls does not switch its stored option back on. +fn legacy_send_options(policies: &[OrgPolicy]) -> (bool, bool) { + let disable_send = policies.iter().any(|p| p.has_type(OrgPolicyType::DisableSend) && p.enabled); + let disable_hide_email = policies.iter().any(|p| p.has_type(OrgPolicyType::SendOptions) && hide_email_disabled(p)); + (disable_send, disable_hide_email) +} + +/// Mirrors a saved Send policy into the others, like upstream's `SendControlsSyncPolicyEvent`, +/// `DisableSendSyncPolicyEvent` and `SendOptionsSyncPolicyEvent`, and returns the policies to save. +/// `policies` are the organization's policies, including the saved one. +fn mirror_send_policies(saved: &OrgPolicy, policies: &[OrgPolicy]) -> ApiResult> { + let find_or_new = |policy_type| { + policies + .iter() + .find(|p| p.has_type(policy_type)) + .cloned() + .unwrap_or_else(|| OrgPolicy::new(saved.org_uuid.clone(), policy_type, false, String::from("null"))) + }; + + if saved.has_type(OrgPolicyType::SendControls) { + let data = saved.send_controls_data(); + let mut disable_send = find_or_new(OrgPolicyType::DisableSend); + disable_send.enabled = saved.enabled && data.disable_send; + let mut send_options = find_or_new(OrgPolicyType::SendOptions); + send_options.enabled = saved.enabled && data.disable_hide_email; + send_options.data = serde_json::to_string(&SendOptionsPolicyData { + disable_hide_email: data.disable_hide_email, + })?; + return Ok(vec![disable_send, send_options]); + } + + let mut controls = find_or_new(OrgPolicyType::SendControls); + let mut data = controls.send_controls_data(); + (data.disable_send, data.disable_hide_email) = legacy_send_options(policies); + // Turning a legacy policy off must not switch off the restrictions only Send controls has. + controls.enabled |= data.disable_send || data.disable_hide_email; + controls.data = serde_json::to_string(&data)?; + Ok(vec![controls]) +} + +impl OrgPolicy { + /// Stored data was validated when saved; data that can not be read blocks Sends instead of allowing them. + fn send_controls_data(&self) -> SendControlsPolicyData { + let data = serde_json::from_str::(&self.data).ok(); + data.and_then(|data| SendControlsPolicyData::parse(Some(&data)).ok()).unwrap_or_else(|| { + error!("Invalid Send controls policy data, blocking Sends: {}", self.data); + SendControlsPolicyData { + disable_send: true, + ..Default::default() + } + }) + } + + /// Validates the data of a Send policy before it is saved and returns the data to store. + pub fn send_policy_data(policy_type: OrgPolicyType, data: Option) -> ApiResult> { + match policy_type { + OrgPolicyType::SendControls => { + Ok(Some(serde_json::to_value(SendControlsPolicyData::parse(data.as_ref())?)?)) + } + OrgPolicyType::SendOptions => { + if let Some(value) = &data + && let Err(e) = Option::::deserialize(value) + { + err!(format!("Invalid Send options policy data: {e}")) + } + Ok(data) + } + _ => Ok(data), + } + } + + /// Keeps Send controls and the legacy Send policies in sync after one of them was saved. + pub async fn sync_send_policies(saved: &Self, conn: &DbConn) -> EmptyResult { + if !SEND_POLICIES.contains(&saved.atype) { + return Ok(()); + } + for mut policy in mirror_send_policies(saved, &Self::find_by_org(&saved.org_uuid, conn).await)? { + policy.save(conn).await?; + } + Ok(()) + } + + /// Upstream's `PolicyQuery`: until Send controls is saved, it is derived from the legacy policies, so the + /// current policy editor shows what is enforced instead of turning it off on the next save. + pub fn synthesize_send_controls(org_id: &OrganizationId, policies: &[Self]) -> Self { + let (disable_send, disable_hide_email) = legacy_send_options(policies); + let data = SendControlsPolicyData { + disable_send, + disable_hide_email, + ..Default::default() + }; + Self::new( + org_id.clone(), + OrgPolicyType::SendControls, + disable_send || disable_hide_email, + json!(data).to_string(), + ) + } + + /// Enforces the Send policies of every organization in which the user is an accepted or confirmed + /// member below Admin on the Send as it would be saved. Deleting a Send stays possible. + pub async fn check_send(user_id: &UserId, send: &Send, conn: &DbConn) -> EmptyResult { + let policies = conn + .run(move |conn| { + org_policies::table + .inner_join(users_organizations::table.on(users_organizations::org_uuid.eq(org_policies::org_uuid))) + .filter(users_organizations::user_uuid.eq(user_id)) + .filter( + users_organizations::status + .eq_any([MembershipStatus::Accepted as i32, MembershipStatus::Confirmed as i32]), + ) + // Owners and admins are exempt. The numbers of MembershipType are not its order. + .filter(users_organizations::atype.ne(MembershipType::Owner as i32)) + .filter(users_organizations::atype.ne(MembershipType::Admin as i32)) + .filter(org_policies::enabled.eq(true)) + .filter(org_policies::atype.eq_any(SEND_POLICIES)) + .select(org_policies::all_columns) + .load::(conn) + }) + .await?; + + let mut controls = SendControlsPolicyData::default(); + for policy in policies { + match OrgPolicyType::from_i32(policy.atype) { + Some(OrgPolicyType::DisableSend) => controls.disable_send = true, + Some(OrgPolicyType::SendOptions) => controls.disable_hide_email |= hide_email_disabled(&policy), + _ => controls.merge(policy.send_controls_data()), + } + } + controls.check_send(send) + } +} From 010c269e3751b0a9da1b21a4a7a2aadd1ce6d02a Mon Sep 17 00:00:00 2001 From: Timshel Date: Mon, 23 Nov 2026 00:42:58 +0000 Subject: [PATCH 05/12] Improve and expand kdf_upgrade (#7855) Co-authored-by: Timshel --- src/api/core/accounts.rs | 23 ++++-------------- src/api/core/ciphers.rs | 6 ++--- src/api/core/organizations.rs | 20 +++++++++------- src/api/core/two_factor/authenticator.rs | 4 ++-- src/api/core/two_factor/duo.rs | 4 ++-- src/api/core/two_factor/email.rs | 4 ++-- src/api/core/two_factor/mod.rs | 5 ++-- src/api/core/two_factor/webauthn.rs | 4 ++-- src/api/core/two_factor/yubikey.rs | 5 ++-- src/api/identity.rs | 4 ++-- src/api/mod.rs | 4 +++- src/db/models/user.rs | 30 ++++++++++++++++++++++++ 12 files changed, 68 insertions(+), 45 deletions(-) diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs index e6ffdc5c..5fdbf566 100644 --- a/src/api/core/accounts.rs +++ b/src/api/core/accounts.rs @@ -1878,7 +1878,7 @@ async fn post_sstamp(data: Json, headers: Headers, conn: DbCo let data: PasswordOrOtpData = data.into_inner(); let mut user = headers.user; - data.validate(&user, true, &conn).await?; + data.validate(&mut user, true, &conn).await?; user.reset_security_stamp(&conn).await?; let save_result = user.save(&conn).await; @@ -2136,9 +2136,9 @@ async fn post_delete_account( #[delete("/accounts", data = "")] async fn delete_account(data: Json, headers: Headers, conn: DbConn, nt: Notify<'_>) -> EmptyResult { let data: PasswordOrOtpData = data.into_inner(); - let user = headers.user; + let mut user = headers.user; - data.validate(&user, true, &conn).await?; + data.validate(&mut user, true, &conn).await?; // The devices are deleted together with the user, so check for push devices beforehand let has_push_device = CONFIG.push_enabled() && Device::check_user_has_push_device(&user.uuid, &conn).await; @@ -2264,19 +2264,6 @@ struct SecretVerificationRequest { master_password_hash: String, } -// Change the KDF Iterations if necessary -pub async fn kdf_upgrade(user: &mut User, pwd_hash: &str, conn: &DbConn) -> ApiResult<()> { - if user.password_iterations < CONFIG.password_iterations() { - user.password_iterations = CONFIG.password_iterations(); - user.set_password(pwd_hash, None, false, None, conn).await?; - - if let Err(e) = user.save(conn).await { - error!("Error updating user: {e:#?}"); - } - } - Ok(()) -} - #[post("/accounts/verify-password", data = "")] async fn verify_password(data: Json, headers: Headers, conn: DbConn) -> JsonResult { let data: SecretVerificationRequest = data.into_inner(); @@ -2286,7 +2273,7 @@ async fn verify_password(data: Json, headers: Headers err!("Invalid password") } - kdf_upgrade(&mut user, &data.master_password_hash, &conn).await?; + user.check_persist_kdf_upgrade(&data.master_password_hash, &conn).await?; Ok(Json(master_password_policy(&user, &conn).await)) } @@ -2295,7 +2282,7 @@ async fn update_api_key(data: Json, rotate: bool, headers: He let data: PasswordOrOtpData = data.into_inner(); let mut user = headers.user; - data.validate(&user, true, &conn).await?; + data.validate(&mut user, true, &conn).await?; if rotate || user.api_key.is_none() { user.api_key = Some(crypto::generate_api_key()); diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index 7fa51363..32b4fcb1 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -2302,9 +2302,9 @@ async fn purge_org_vault( } let data: PasswordOrOtpData = data.into_inner(); - let user = headers.user; + let mut user = headers.user; - data.validate(&user, true, &conn).await?; + data.validate(&mut user, true, &conn).await?; match Membership::find_confirmed_by_user_and_org(&user.uuid, &organization.org_id, &conn).await { Some(member) if member.atype == MembershipType::Owner => { @@ -2338,7 +2338,7 @@ async fn purge_personal_vault( let data: PasswordOrOtpData = data.into_inner(); let mut user = headers.user; - data.validate(&user, true, &conn).await?; + data.validate(&mut user, true, &conn).await?; for cipher in Cipher::find_owned_by_user(&user.uuid, &conn).await { cipher.delete(&conn).await?; diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index 6c29c6dc..a25306c3 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -235,12 +235,14 @@ async fn delete_organization( headers: OwnerHeaders, conn: DbConn, ) -> EmptyResult { + let mut user = headers.user; + if org_id != headers.org_id { err!("Organization not found", "Organization id's do not match"); } let data: PasswordOrOtpData = data.into_inner(); - data.validate(&headers.user, true, &conn).await?; + data.validate(&mut user, true, &conn).await?; match Organization::find_by_uuid(&org_id, &conn).await { None => err!("Organization not found"), @@ -3718,12 +3720,13 @@ async fn put_reset_password_enrollment( data: Json, conn: DbConn, ) -> EmptyResult { - if user_id != headers.user.uuid { + let mut membership = headers.membership; + let mut user = headers.user; + + if user_id != user.uuid { err!("User to enroll isn't member of required organization", "The user_id and acting user do not match"); } - let mut membership = headers.membership; - check_reset_password_applicable(&org_id, &conn).await?; let reset_request = data.into_inner(); @@ -3738,7 +3741,7 @@ async fn put_reset_password_enrollment( master_password_hash: reset_request.master_password_hash, otp: reset_request.otp, } - .validate(&headers.user, true, &conn) + .validate(&mut user, true, &conn) .await?; } @@ -3754,8 +3757,7 @@ async fn put_reset_password_enrollment( EventType::OrganizationUserResetPasswordWithdraw }; - log_event(event_type, &membership.uuid, &org_id, &headers.user.uuid, headers.device.atype, &headers.ip.ip, &conn) - .await; + log_event(event_type, &membership.uuid, &org_id, &user.uuid, headers.device.atype, &headers.ip.ip, &conn).await; Ok(()) } @@ -3789,10 +3791,10 @@ async fn api_key( err!("Organization not found", "Organization id's do not match"); } let data: PasswordOrOtpData = data.into_inner(); - let user = headers.user; + let mut user = headers.user; // Validate the owner users password/otp - data.validate(&user, true, &conn).await?; + data.validate(&mut user, true, &conn).await?; let org_api_key = if let Some(mut org_api_key) = OrganizationApiKey::find_by_org_uuid(org_id, &conn).await { if rotate { diff --git a/src/api/core/two_factor/authenticator.rs b/src/api/core/two_factor/authenticator.rs index c56c9b58..8f30907b 100644 --- a/src/api/core/two_factor/authenticator.rs +++ b/src/api/core/two_factor/authenticator.rs @@ -20,9 +20,9 @@ pub fn routes() -> Vec { #[post("/two-factor/get-authenticator", data = "")] async fn generate_authenticator(data: Json, headers: Headers, conn: DbConn) -> JsonResult { - let user = headers.user; + let mut user = headers.user; - data.validate(&user, false, &conn).await?; + data.validate(&mut user, false, &conn).await?; let twofactor = TwoFactor::find_by_user_and_type(&user.uuid, TwoFactorType::Authenticator, &conn).await; diff --git a/src/api/core/two_factor/duo.rs b/src/api/core/two_factor/duo.rs index 87f36de9..ea76fabe 100644 --- a/src/api/core/two_factor/duo.rs +++ b/src/api/core/two_factor/duo.rs @@ -43,9 +43,9 @@ const DISABLED_MESSAGE_DEFAULT: &str = ", headers: Headers, conn: DbConn) -> JsonResult { let data: PasswordOrOtpData = data.into_inner(); - let user = headers.user; + let mut user = headers.user; - data.validate(&user, false, &conn).await?; + data.validate(&mut user, false, &conn).await?; let (enabled, duo) = match get_user_duo_data(&user.uuid, &conn).await { DuoStatus::Global(_) => (true, Some(DuoData::secret())), diff --git a/src/api/core/two_factor/email.rs b/src/api/core/two_factor/email.rs index 6ff606ee..96b6643c 100644 --- a/src/api/core/two_factor/email.rs +++ b/src/api/core/two_factor/email.rs @@ -154,9 +154,9 @@ pub async fn send_token(user_id: &UserId, conn: &DbConn) -> EmptyResult { #[post("/two-factor/get-email", data = "")] async fn get_email(data: Json, headers: Headers, conn: DbConn) -> JsonResult { let data: PasswordOrOtpData = data.into_inner(); - let user = headers.user; + let mut user = headers.user; - data.validate(&user, false, &conn).await?; + data.validate(&mut user, false, &conn).await?; let (enabled, mfa_email) = if let Some(x) = TwoFactor::find_by_user_and_type(&user.uuid, TwoFactorType::Email, &conn).await { diff --git a/src/api/core/two_factor/mod.rs b/src/api/core/two_factor/mod.rs index e947abe3..41b5227b 100644 --- a/src/api/core/two_factor/mod.rs +++ b/src/api/core/two_factor/mod.rs @@ -104,9 +104,9 @@ async fn get_twofactor(headers: Headers, conn: DbConn) -> Json { #[post("/two-factor/get-recover", data = "")] async fn get_recover(data: Json, headers: Headers, conn: DbConn) -> JsonResult { let data: PasswordOrOtpData = data.into_inner(); - let user = headers.user; + let mut user = headers.user; - data.validate(&user, true, &conn).await?; + data.validate(&mut user, true, &conn).await?; Ok(Json(json!({ "code": user.totp_recover, @@ -129,6 +129,7 @@ pub async fn check_2fa_state(user: &User, device_type: i32, ip: &std::net::IpAdd if TwoFactor::find_by_user(&user.uuid, conn).await.is_empty() { enforce_2fa_policy(user, &user.uuid, device_type, ip, true, conn).await?; } + Ok(()) } diff --git a/src/api/core/two_factor/webauthn.rs b/src/api/core/two_factor/webauthn.rs index 29760b12..c7025413 100644 --- a/src/api/core/two_factor/webauthn.rs +++ b/src/api/core/two_factor/webauthn.rs @@ -123,9 +123,9 @@ async fn get_webauthn(data: Json, headers: Headers, conn: DbC } let data: PasswordOrOtpData = data.into_inner(); - let user = headers.user; + let mut user = headers.user; - data.validate(&user, false, &conn).await?; + data.validate(&mut user, false, &conn).await?; let (enabled, registrations) = get_webauthn_registrations(&user.uuid, &conn).await?; let keys: Vec = registrations.iter().map(|r| r.id).collect(); diff --git a/src/api/core/two_factor/yubikey.rs b/src/api/core/two_factor/yubikey.rs index 17c4e9a0..e9fcee41 100644 --- a/src/api/core/two_factor/yubikey.rs +++ b/src/api/core/two_factor/yubikey.rs @@ -122,9 +122,9 @@ async fn generate_yubikey(data: Json, headers: Headers, conn: get_yubico_credentials()?; let data: PasswordOrOtpData = data.into_inner(); - let user = headers.user; + let mut user = headers.user; - data.validate(&user, false, &conn).await?; + data.validate(&mut user, false, &conn).await?; let user_id = &user.uuid; @@ -148,6 +148,7 @@ async fn generate_yubikey(data: Json, headers: Headers, conn: #[post("/two-factor/yubikey", data = "")] async fn activate_yubikey(data: Json, headers: Headers, conn: DbConn) -> JsonResult { let data: EnableYubikeyData = data.into_inner(); + let yubikeys = parse_yubikeys(&data); let mut user = headers.user; diff --git a/src/api/identity.rs b/src/api/identity.rs index e9d4d03e..c359e632 100644 --- a/src/api/identity.rs +++ b/src/api/identity.rs @@ -14,7 +14,7 @@ use crate::{ api::{ ApiResult, EmptyResult, JsonResult, core::{ - accounts::{PreloginData, RegisterData, kdf_upgrade, prelogin, register}, + accounts::{PreloginData, RegisterData, prelogin, register}, log_user_event, two_factor::{ authenticator, duo_oidc, email, enforce_2fa_policy, is_twofactor_provider_usable, webauthn, yubikey, @@ -461,7 +461,7 @@ async fn password_login( // Change the KDF Iterations (only when not logging in with an auth request) if data.auth_request.is_none() { - kdf_upgrade(&mut user, password, conn).await?; + user.check_persist_kdf_upgrade(password, conn).await?; } let now = Utc::now().naive_utc(); diff --git a/src/api/mod.rs b/src/api/mod.rs index 5289e8cf..77857a81 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -63,7 +63,7 @@ impl PasswordOrOtpData { /// Tokens used via this struct can be used multiple times during the process /// First for the validation to continue, after that to enable or validate the following actions /// This is different per caller, so it can be adjusted to delete the token or not - pub async fn validate(&self, user: &User, delete_if_valid: bool, conn: &DbConn) -> EmptyResult { + pub async fn validate(&self, user: &mut User, delete_if_valid: bool, conn: &DbConn) -> EmptyResult { use crate::api::core::two_factor::protected_actions::validate_protected_action_otp; match (self.master_password_hash.as_deref(), self.otp.as_deref()) { @@ -71,6 +71,8 @@ impl PasswordOrOtpData { if !user.check_valid_password(pw_hash) { err!("Invalid password"); } + + user.check_persist_kdf_upgrade(pw_hash, conn).await?; } (None, Some(otp)) => { validate_protected_action_otp(otp, &user.uuid, delete_if_valid, conn).await?; diff --git a/src/db/models/user.rs b/src/db/models/user.rs index fe7b8ab6..1381186c 100644 --- a/src/db/models/user.rs +++ b/src/db/models/user.rs @@ -2,6 +2,7 @@ use chrono::{NaiveDateTime, TimeDelta, Utc}; use derive_more::{AsRef, Deref, Display, From}; use diesel::prelude::*; use serde_json::Value; +use std::cmp; use crate::{ CONFIG, @@ -248,6 +249,7 @@ impl User { allow_next_route: Option>, conn: &DbConn, ) -> EmptyResult { + self.password_iterations = cmp::max(self.password_iterations, CONFIG.password_iterations()); self.password_hash = crypto::hash_password(password.as_bytes(), &self.salt, self.password_iterations.cast_unsigned()); @@ -477,6 +479,34 @@ impl User { } } + pub async fn check_persist_kdf_upgrade(&mut self, pwd_hash: &str, conn: &DbConn) -> EmptyResult { + if self.password_iterations < CONFIG.password_iterations() { + let old_iteration = self.password_iterations; + let old_hash = self.password_hash.clone(); + + self.set_password(pwd_hash, None, false, None, conn).await?; + + conn.run(move |conn| { + diesel::update( + users::table + .filter(users::uuid.eq(&self.uuid)) + .filter(users::password_iterations.eq(old_iteration)) + .filter(users::password_hash.eq(old_hash)), + ) + .set(( + users::updated_at.eq(Utc::now().naive_utc()), + users::password_iterations.eq(&self.password_iterations), + users::password_hash.eq(&self.password_hash), + )) + .execute(conn) + .map_res("Error updating user KDF iterations") + }) + .await + } else { + Ok(()) + } + } + pub async fn delete(&self, conn: &DbConn) -> EmptyResult { for member in Membership::find_confirmed_by_user(&self.uuid, conn).await { if member.atype == MembershipType::Owner From cdf2035433eb355b707b9f1c764636e69cc87a2c Mon Sep 17 00:00:00 2001 From: maximilize <3752128+maximilize@users.noreply.github.com> Date: Mon, 23 Nov 2026 03:52:37 +0300 Subject: [PATCH 06/12] Do not fail login when push device registration fails (#7378) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit register_push_device() runs on re-authentication of an existing device in authenticated_response(). Its error was propagated with `?`, so a failure talking to the push relay/identity server (e.g. an undecodable response in get_auth_api_token(), "Unexpected push token received from bitwarden server") turned a successful authentication into a 400 Bad Request on POST /identity/connect/token. Handle the registration best-effort instead: log the error and continue, mirroring the new-device login email handling a few lines above. The device is still saved afterwards, and a re-login no longer fails when the push relay/identity endpoint misbehaves. Fixes #7371 Co-authored-by: max Co-authored-by: Daniel GarcĂ­a --- src/api/identity.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/api/identity.rs b/src/api/identity.rs index c359e632..ac9d28cc 100644 --- a/src/api/identity.rs +++ b/src/api/identity.rs @@ -606,7 +606,12 @@ async fn authenticated_response( // register push device if !device.is_new() { - register_push_device(device, conn).await?; + // Registering the device for push is best-effort: a failure talking to the + // push relay/identity server must not turn a successful authentication into + // an error (see #7371). This mirrors the new-device email handling above. + if let Err(e) = register_push_device(device, conn).await { + error!("An error occurred while registering the device for push notifications: {e}"); + } } // Save to update `device.updated_at` to track usage and toggle new status From 6f7a7f70347e0cdde9d3506342ff04b22a9c78ce Mon Sep 17 00:00:00 2001 From: Timshel Date: Mon, 23 Nov 2026 01:17:01 +0000 Subject: [PATCH 07/12] Improve Playwright tests (#7752) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Allow to lower KDF iterations for tests * Only read CLIENT_KDF_ITER in builds with unsafe_test_mode --------- Co-authored-by: Timshel Co-authored-by: Daniel GarcĂ­a --- playwright/compose/warden/build.sh | 2 +- playwright/docker-compose.yml | 4 +++ playwright/test.env | 2 ++ src/api/core/accounts.rs | 12 +++---- src/config.rs | 56 ++++++++++++++++++++++++++++-- src/db/models/user.rs | 3 +- 6 files changed, 67 insertions(+), 12 deletions(-) diff --git a/playwright/compose/warden/build.sh b/playwright/compose/warden/build.sh index ee8b47fe..0a2d4694 100755 --- a/playwright/compose/warden/build.sh +++ b/playwright/compose/warden/build.sh @@ -24,7 +24,7 @@ if [[ ! -z "$REPO_URL" ]] && [[ ! -z "$COMMIT_HASH" ]] ; then fi # Lower the KDF iterations default for faster tests. -sed -i 's/(6e5,2e6,6e5)/(1e5,2e6,1e5)/' /web-vault/app/main.*.js +sed -i 's/(6e5,2e6,6e5)/(6e3,2e6,6e3)/' /web-vault/app/main.*.js # Generate a self signed cert mkdir -p /data/ssl; cd /data/ssl diff --git a/playwright/docker-compose.yml b/playwright/docker-compose.yml index 5bfc47a5..b6ac6f0f 100644 --- a/playwright/docker-compose.yml +++ b/playwright/docker-compose.yml @@ -6,6 +6,8 @@ services: build: context: .. dockerfile: Dockerfile + args: + DB: sqlite,mysql,postgresql,unsafe_test_mode entrypoint: /bin/bash restart: "no" @@ -23,12 +25,14 @@ services: env_file: ${DC_ENV_FILE:-.env} environment: - ADMIN_TOKEN + - CLIENT_KDF_ITER - DATABASE_URL - CLIENT_SUPPRESS_ONBOARDING - EMAIL_2FA_AUTO_FALLBACK - I_REALLY_WANT_VOLATILE_STORAGE - LOG_LEVEL - LOGIN_RATELIMIT_MAX_BURST + - PASSWORD_ITERATIONS - SMTP_HOST - SMTP_FROM - SMTP_DEBUG diff --git a/playwright/test.env b/playwright/test.env index 2260f860..c2fa354e 100644 --- a/playwright/test.env +++ b/playwright/test.env @@ -58,6 +58,8 @@ LOG_LEVEL=info,oidcwarden::sso=debug LOGIN_RATELIMIT_MAX_BURST=100 ADMIN_TOKEN=admin CLIENT_SUPPRESS_ONBOARDING=true +PASSWORD_ITERATIONS=6000 +CLIENT_KDF_ITER=6000 SMTP_SECURITY=off SMTP_PORT=${MAILDEV_SMTP_PORT} diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs index 5fdbf566..b36d24c2 100644 --- a/src/api/core/accounts.rs +++ b/src/api/core/accounts.rs @@ -1039,8 +1039,8 @@ async fn post_password(data: Json, headers: Headers, conn: DbCon } fn set_kdf_data(user: &mut User, data: &KDFData) -> EmptyResult { - if data.kdf == UserKdfType::Pbkdf2 as i32 && data.kdf_iterations < 100_000 { - err!("PBKDF2 KDF iterations must be at least 100000.") + if data.kdf == UserKdfType::Pbkdf2 as i32 && data.kdf_iterations < CONFIG.client_kdf_iter() { + err!(format!("PBKDF2 KDF iterations must be at least {}.", CONFIG.client_kdf_iter())) } if data.kdf == UserKdfType::Argon2id as i32 { @@ -2219,15 +2219,15 @@ fn unknown_email_kdf(email: &str) -> (i32, i32, Option, Option) { const PBKDF2: i32 = UserKdfType::Pbkdf2 as i32; const ARGON2ID: i32 = UserKdfType::Argon2id as i32; // Same list as upstream, the default is in it twice to give it more weight - const KDF_SETTINGS: [(i32, i32, Option, Option); 6] = [ - (User::CLIENT_KDF_TYPE_DEFAULT, User::CLIENT_KDF_ITER_DEFAULT, None, None), - (User::CLIENT_KDF_TYPE_DEFAULT, User::CLIENT_KDF_ITER_DEFAULT, None, None), + let kdf_settings: [(i32, i32, Option, Option); 6] = [ + (User::CLIENT_KDF_TYPE_DEFAULT, CONFIG.client_kdf_iter(), None, None), + (User::CLIENT_KDF_TYPE_DEFAULT, CONFIG.client_kdf_iter(), None, None), (PBKDF2, 100_000, None, None), (PBKDF2, 5_000, None, None), (ARGON2ID, 3, Some(64), Some(4)), (ARGON2ID, 6, Some(32), Some(4)), ]; - KDF_SETTINGS[crate::auth::prelogin_kdf_index(email, KDF_SETTINGS.len())] + kdf_settings[crate::auth::prelogin_kdf_index(email, kdf_settings.len())] } pub async fn prelogin(data: Json, ip: ClientIp, conn: DbConn) -> JsonResult { diff --git a/src/config.rs b/src/config.rs index 1291a5ce..df9c5a1d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -71,9 +71,16 @@ macro_rules! make_config { ( @type $ty:ty, option) => { Option<$ty> }; ( @type $ty:ty, $id:ident) => { $ty }; + // Options that only builds with the `unsafe_test_mode` feature read + ( @test_only test_def ) => { true }; + ( @test_only $none_action:ident ) => { false }; + // Generate the values depending on none_action ( @build $value:expr, $config:expr, option, ) => { $value }; ( @build $value:expr, $config:expr, def, $default:expr ) => { $value.unwrap_or($default) }; + ( @build $value:expr, $config:expr, test_def, $default:expr ) => { + if cfg!(feature = "unsafe_test_mode") { $value.unwrap_or($default) } else { $default } + }; ( @build $value:expr, $config:expr, auto, $default_fn:expr ) => {{ match $value { Some(v) => v, @@ -286,6 +293,22 @@ macro_rules! make_config { )+)+ } + /// Warns about each set `test_def` option in a build without the `unsafe_test_mode` feature, which ignores them. + fn warn_test_only_options(&self) { + if cfg!(feature = "unsafe_test_mode") { + return; + } + $($( + if make_config! { @test_only $none_action } && self.$name.is_some() { + // We can't use warn! here because logging isn't setup yet. + println!( + "[WARNING] {} is only read by builds with the `unsafe_test_mode` feature, ignoring it.", + pastey::paste!(stringify!([<$name:upper>])) + ); + } + )+)+ + } + /// Merges the values of both builders into a new builder. /// If both have the same element, `other` wins. fn merge(&self, other: &Self, show_overrides: bool, overrides: &mut Vec<&str>) -> Self { @@ -352,6 +375,8 @@ macro_rules! make_config { r#type: &'static str, doc: ElementDoc, overridden: bool, + #[serde(skip)] + test_only: bool, } #[derive(Serialize)] @@ -411,10 +436,20 @@ macro_rules! make_config { r#type: get_form_type(stringify!($ty)), doc: get_doc(concat!($($doc),+)), overridden: overridden.contains(&pastey::paste!(stringify!([<$name:upper>]))), + test_only: make_config! { @test_only $none_action }, }, )+], // End of elements repetition }, )+]; // End of groups repetition + + // Options only test builds read aren't shown in the others + let data: Vec = data + .into_iter() + .map(|mut group| { + group.elements.retain(|e| !e.test_only || cfg!(feature = "unsafe_test_mode")); + group + }) + .collect(); serde_json::to_value(data).unwrap() } @@ -513,6 +548,8 @@ macro_rules! make_config { // // Where action applied when the value wasn't provided and can be: // def: Use a default value +// test_def: Use a default value, which only builds with the `unsafe_test_mode` feature let you change. Other builds +// warn at startup when it's set, ignore it, and don't show it in the admin panel // auto: Value is auto generated based on other values // option: Value is optional // generated: Value is always autogenerated and it's original value ignored @@ -682,6 +719,8 @@ make_config! { client { /// Control whether clients onboarding interstitials are suppressed |> post-login welcome dialogs, extension install prompts, setup extension redirects, and premium upsell modals client_suppress_onboarding: bool, true, def, false; + /// In most cases this value is set by the client |> Will block clients from setting too low of a value in `accounts::post_kdf` + client_kdf_iter: i32, false, test_def, 600_000; }, /// Advanced settings @@ -961,6 +1000,17 @@ make_config! { }, } +fn check_iterations(iterations: i32, key: &str) -> Result<(), Error> { + if iterations < 100_000 { + #[cfg(feature = "unsafe_test_mode")] + println!("[WARNING] {key} should be at least 100000 or higher. The default is 600000!"); + #[cfg(not(feature = "unsafe_test_mode"))] + err!(format!("{key} should be at least 100000 or higher. The default is 600000!")); + } + + Ok(()) +} + fn validate_config(cfg: &ConfigItems, on_update: bool) -> Result<(), Error> { // Validate connection URL is valid and DB feature is enabled #[cfg(sqlite)] @@ -995,9 +1045,8 @@ fn validate_config(cfg: &ConfigItems, on_update: bool) -> Result<(), Error> { } } - if cfg.password_iterations < 100_000 { - err!("PASSWORD_ITERATIONS should be at least 100000 or higher. The default is 600000!"); - } + check_iterations(cfg.password_iterations, "PASSWORD_ITERATIONS")?; + check_iterations(cfg.client_kdf_iter, "CLIENT_KDF_ITER")?; let limit = 256; if !(1..=limit).contains(&cfg.database_max_conns) { @@ -1554,6 +1603,7 @@ impl Config { // Fill any missing with defaults let config = builder.build(); if !SKIP_CONFIG_VALIDATION.load(Ordering::Relaxed) { + builder.warn_test_only_options(); validate_config(&config, false)?; } diff --git a/src/db/models/user.rs b/src/db/models/user.rs index 1381186c..c92ee853 100644 --- a/src/db/models/user.rs +++ b/src/db/models/user.rs @@ -134,7 +134,6 @@ impl UserStampException { /// Local methods impl User { pub const CLIENT_KDF_TYPE_DEFAULT: i32 = UserKdfType::Pbkdf2 as i32; - pub const CLIENT_KDF_ITER_DEFAULT: i32 = 600_000; pub fn new(email: &str, name: Option) -> Self { let now = Utc::now().naive_utc(); @@ -172,7 +171,7 @@ impl User { excluded_globals: "[]".to_owned(), client_kdf_type: Self::CLIENT_KDF_TYPE_DEFAULT, - client_kdf_iter: Self::CLIENT_KDF_ITER_DEFAULT, + client_kdf_iter: CONFIG.client_kdf_iter(), client_kdf_memory: None, client_kdf_parallelism: None, From 384fe6b4423e34cd62028fa1ebd1c54f69f3507e Mon Sep 17 00:00:00 2001 From: Tom <83423411+tom27052006@users.noreply.github.com> Date: Mon, 23 Nov 2026 13:29:54 +0100 Subject: [PATCH 08/12] Add the Autotype GA policy (policy 23) (#7994) --- src/db/models/org_policy.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/db/models/org_policy.rs b/src/db/models/org_policy.rs index 95346257..2701f2d1 100644 --- a/src/db/models/org_policy.rs +++ b/src/db/models/org_policy.rs @@ -31,7 +31,7 @@ pub struct OrgPolicy { pub revision_date: NaiveDateTime, } -// https://github.com/bitwarden/server/blob/9ebe16587175b1c0e9208f84397bb75d0d595510/src/Core/AdminConsole/Enums/PolicyType.cs +// https://github.com/bitwarden/server/blob/b0f5bc64436a2457e1e8898e65c7e9e40ba94d7a/src/Core/AdminConsole/Enums/PolicyType.cs #[derive(Copy, Clone, Eq, PartialEq, num_derive::FromPrimitive)] pub enum OrgPolicyType { TwoFactorAuthentication = 0, @@ -57,6 +57,7 @@ pub enum OrgPolicyType { OrganizationUserNotification = 20, SendControls = 21, FillAssist = 22, + AutotypeGaPolicy = 23, } // https://github.com/bitwarden/server/blob/9ebe16587175b1c0e9208f84397bb75d0d595510/src/Core/AdminConsole/Models/Data/Organizations/Policies/SendOptionsPolicyData.cs#L5 From 07c6b00da778ff6903a9a40c0f24f77daf93bea4 Mon Sep 17 00:00:00 2001 From: Steven Haigh Date: Tue, 24 Nov 2026 09:55:26 +1100 Subject: [PATCH 09/12] Support IPC on Web UI for sync (un)lock (#8000) Following up on #7986 which added the "innovation-sprint-shared-unlock-part-2" feature flag. It seems that "content-script-ipc-channel-framework" is required for activating this for the web side of synced (un)lock in 2026.11.0. Reference: https://community.bitwarden.com/t/shared-unlock-state-login-to-browser-extensions-when-logging-into-desktop-app-and-vice-versa/1635/218 --- .env.template | 1 + src/config.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/.env.template b/.env.template index 425b3396..47c2feaf 100644 --- a/.env.template +++ b/.env.template @@ -418,6 +418,7 @@ ## - "enable-account-encryption-v2-jit-password-registration": Give SSO users who set their master password on their first login v2 encryption. (Web >= 2026.1.1, Desktop/Browser/CLI >= 2026.1.0, Android >= 2026.4.1, iOS >= 2026.6.0) ## These two flags can't be undone: a v2 account stays v2, and it can only log in from clients that are 2026.10.1 or newer (2026.10.2 for the desktop app), so the versions above are only enough to create one. ## - "innovation-sprint-shared-unlock-part-2": Enable shared unlock between extension / web / desktop in >= 2026.11.0 +## - "content-script-ipc-channel-framework": Enable shared unlock on the web UI in web builds >= 2026.11.0 # EXPERIMENTAL_CLIENT_FEATURE_FLAGS= ## Require new device emails. When a user logs in an email is required to be sent. diff --git a/src/config.rs b/src/config.rs index df9c5a1d..185921c7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1561,6 +1561,7 @@ pub const SUPPORTED_FEATURE_FLAGS: &[&str] = &[ "pm-34171-card-scanner", // Platform Team "pm-30529-webauthn-related-origins", + "content-script-ipc-channel-framework", // Tools Team: read by the clients up to 2026.10 and by the Android and iOS apps "pm-31885-send-controls", // Vault Team From b12874bd83b7fc4c96611bfb8f6976313904a598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Tue, 24 Nov 2026 01:53:04 +0100 Subject: [PATCH 10/12] Align several API responses and request checks with upstream (#8001) --- .env.template | 5 +- THREAT_MODEL.md | 1 + playwright/tests/organization.smtp.spec.ts | 10 ++- src/api/core/accounts.rs | 94 ++++------------------ src/api/core/ciphers.rs | 41 +++++----- src/api/core/organizations.rs | 37 +++++++-- src/config.rs | 6 +- src/db/models/auth_request.rs | 21 ++++- src/db/models/collection.rs | 6 +- src/db/models/organization.rs | 6 +- src/sso_client.rs | 5 +- src/util.rs | 8 +- 12 files changed, 119 insertions(+), 121 deletions(-) diff --git a/.env.template b/.env.template index 47c2feaf..501df3e2 100644 --- a/.env.template +++ b/.env.template @@ -338,6 +338,8 @@ ## "local" accepts it from any non global address, which covers a reverse proxy running on the same ## host or container network. Use "all" to accept it from anywhere, or list the addresses of your ## proxy as IPs and CIDR ranges if it connects from a public address. +## Non global addresses include the 6to4, Teredo and local-use NAT64 ranges, which can carry clients from anywhere: +## if those can reach Vaultwarden, list your proxy instead of using "local", or those clients can set the header. ## For a list header like X-Forwarded-For, the client IP is the rightmost address that isn't one of ## these proxies, so with several proxies in a row (a CDN in front of nginx, for example) list all of them. # IP_HEADER_TRUSTED_PROXIES=local @@ -383,6 +385,7 @@ ## Enabling this will cause the internal HTTP client to refuse to connect to any non-global IP address. ## Useful to secure your internal environment: See https://en.wikipedia.org/wiki/Reserved_IP_addresses for a list of IPs which it will block +## Requests through an outbound proxy (HTTP_PROXY, HTTPS_PROXY or ALL_PROXY) aren't checked, because the proxy resolves the names. # HTTP_REQUEST_BLOCK_NON_GLOBAL_IPS=true ## Client Settings @@ -524,7 +527,7 @@ ## Enforce that the Single Org policy is enabled before setting the Reset Password policy ## Bitwarden enforces this by default. In Vaultwarden we encouraged to use multiple organizations because groups were not available. ## Setting this to true will enforce the Single Org Policy to be enabled before you can enable the Reset Password policy. -# ENFORCE_SINGLE_ORG_WITH_RESET_PW_POLICY=false +# ENFORCE_SINGLE_ORG_WITH_RESET_PW_POLICY=true ## Prefer IPv6 (AAAA) resolving ## This settings configures the DNS resolver to resolve IPv6 first, and if not available try IPv4 diff --git a/THREAT_MODEL.md b/THREAT_MODEL.md index 524c4dce..30878a80 100644 --- a/THREAT_MODEL.md +++ b/THREAT_MODEL.md @@ -81,6 +81,7 @@ These are intended behavior or outside this model. Several match upstream Bitwar - Attacks that need a missing or misconfigured reverse proxy, such as one not sending `X-Forwarded-Proto` (it decides the admin cookie's `Secure` flag). - Attacks that need another component to break its own specification, such as a NAT64 translator that forwards the `64:ff9b::/96` prefix to private addresses, against RFC 6052. - Outbound requests to the SSO provider, Yubico server or S3 endpoint the operator configures, which skip the outbound filter and can be on the internal network. +- Requests sent through an outbound proxy (`HTTP_PROXY`, `HTTPS_PROXY` or `ALL_PROXY`). The proxy resolves names itself, so `HTTP_REQUEST_BLOCK_NON_GLOBAL_IPS` can't check where they go. Configure the proxy so it can't reach anything sensitive, or so it blocks internal addresses. - File permissions in the data folder. Host security belongs to the operator. - Attacks that need physical access to a user's device. - Self-exploitation, where someone can only affect their own account, such as self-XSS or weak KDF settings they choose. diff --git a/playwright/tests/organization.smtp.spec.ts b/playwright/tests/organization.smtp.spec.ts index 1e97ed5d..f45b2f52 100644 --- a/playwright/tests/organization.smtp.spec.ts +++ b/playwright/tests/organization.smtp.spec.ts @@ -42,9 +42,17 @@ test('Invite users', async ({ page }) => { await createAccount(test, page, users.user1, mail1Buffer); await orgs.create(test, page, 'Test'); + await orgs.policies(test, page, 'Test'); + + // Account recovery requires the Single organisation policy (ENFORCE_SINGLE_ORG_WITH_RESET_PW_POLICY) + await test.step(`Set single organisation`, async () => { + await page.getByRole('button', { name: 'Single organisation' }).click(); + await page.getByRole('checkbox', { name: 'Turn on' }).or(page.getByRole('switch', { name: 'Enable policy' })).check({ force: true }); + await page.getByRole('button', { name: 'Save' }).click(); + await utils.checkNotification(page, 'Edited policy Single organisation'); + }); await test.step(`Set account recovery`, async () => { - await orgs.policies(test, page, 'Test'); await page.getByRole('button', { name: 'Account recovery' }).click(); await page.getByRole('checkbox', { name: 'Turn on' }).check(); await page.getByRole('checkbox', { name: 'Automatically enroll new' }).check(); diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs index b36d24c2..8de601ef 100644 --- a/src/api/core/accounts.rs +++ b/src/api/core/accounts.rs @@ -21,10 +21,10 @@ use crate::{ db::{ DbConn, DbPool, models::{ - AuthRequest, AuthRequestId, Cipher, CipherId, Device, DeviceId, DeviceType, DeviceWithAuthRequest, - EmergencyAccess, EmergencyAccessId, EventType, Folder, FolderId, Invitation, KeyId, Membership, - MembershipId, OrgPolicy, OrgPolicyType, Organization, OrganizationId, Send, SendId, SignatureAlgorithm, - User, UserId, UserKdfType, UserSignatureKeyPair, + AuthRequest, AuthRequestId, Cipher, CipherId, Device, DeviceId, DeviceWithAuthRequest, EmergencyAccess, + EmergencyAccessId, EventType, Folder, FolderId, Invitation, KeyId, Membership, MembershipId, OrgPolicy, + OrgPolicyType, Organization, OrganizationId, Send, SendId, SignatureAlgorithm, User, UserId, UserKdfType, + UserSignatureKeyPair, }, }, mail, @@ -909,7 +909,9 @@ async fn get_keys(headers: Headers, conn: DbConn) -> JsonResult { #[serde(rename_all = "camelCase")] struct PostKeysData { // Required like upstream, even next to `accountKeys` + #[serde(alias = "PublicKey")] public_key: Option, + #[serde(alias = "EncryptedPrivateKey")] encrypted_private_key: Option, account_keys: Option, // The id of the user key these account keys belong to, only honored for v2 `accountKeys` @@ -2507,19 +2509,7 @@ async fn post_auth_request( ) .await; - Ok(Json(json!({ - "id": auth_request.uuid, - "publicKey": auth_request.public_key, - "requestDeviceType": DeviceType::from_i32(auth_request.device_type).to_string(), - "requestIpAddress": auth_request.request_ip, - "key": null, - "masterPasswordHash": null, - "creationDate": format_date(&auth_request.creation_date), - "responseDate": null, - "requestApproved": false, - "origin": CONFIG.domain_origin(), - "object": "auth-request" - }))) + Ok(Json(auth_request.to_json())) } #[get("/auth-requests/")] @@ -2529,21 +2519,7 @@ async fn get_auth_request(auth_request_id: AuthRequestId, headers: Headers, conn err!("AuthRequest doesn't exist", "Record not found or user uuid does not match") }; - let response_date_utc = auth_request.response_date.map(|response_date| format_date(&response_date)); - - Ok(Json(json!({ - "id": &auth_request_id, - "publicKey": auth_request.public_key, - "requestDeviceType": DeviceType::from_i32(auth_request.device_type).to_string(), - "requestIpAddress": auth_request.request_ip, - "key": auth_request.enc_key, - "masterPasswordHash": auth_request.master_password_hash, - "creationDate": format_date(&auth_request.creation_date), - "responseDate": response_date_utc, - "requestApproved": auth_request.approved, - "origin": CONFIG.domain_origin(), - "object":"auth-request" - }))) + Ok(Json(auth_request.to_json())) } #[derive(Debug, Deserialize)] @@ -2578,15 +2554,14 @@ async fn put_auth_request( err!("An authentication request with the same device already exists") } - let response_date = Utc::now().naive_utc(); - let response_date_utc = format_date(&response_date); + // Set the date now so that the response returns it + auth_request.response_date = Some(Utc::now().naive_utc()); if data.request_approved { auth_request.approved = Some(data.request_approved); auth_request.enc_key = Some(data.key); auth_request.master_password_hash = data.master_password_hash; auth_request.response_device_id = Some(data.device_identifier.clone()); - auth_request.response_date = Some(response_date); auth_request.save(&conn).await?; ant.send_auth_response(&auth_request.user_uuid, &auth_request.uuid).await; @@ -2613,19 +2588,7 @@ async fn put_auth_request( .await; } - Ok(Json(json!({ - "id": &auth_request_id, - "publicKey": auth_request.public_key, - "requestDeviceType": DeviceType::from_i32(auth_request.device_type).to_string(), - "requestIpAddress": auth_request.request_ip, - "key": auth_request.enc_key, - "masterPasswordHash": auth_request.master_password_hash, - "creationDate": format_date(&auth_request.creation_date), - "responseDate": response_date_utc, - "requestApproved": auth_request.approved, - "origin": CONFIG.domain_origin(), - "object":"auth-request" - }))) + Ok(Json(auth_request.to_json())) } #[get("/auth-requests//response?")] @@ -2648,21 +2611,7 @@ async fn get_auth_request_response( err!("AuthRequest doesn't exist", "Invalid device, IP or code") } - let response_date_utc = auth_request.response_date.map(|response_date| format_date(&response_date)); - - Ok(Json(json!({ - "id": &auth_request_id, - "publicKey": auth_request.public_key, - "requestDeviceType": DeviceType::from_i32(auth_request.device_type).to_string(), - "requestIpAddress": auth_request.request_ip, - "key": auth_request.enc_key, - "masterPasswordHash": auth_request.master_password_hash, - "creationDate": format_date(&auth_request.creation_date), - "responseDate": response_date_utc, - "requestApproved": auth_request.approved, - "origin": CONFIG.domain_origin(), - "object":"auth-request" - }))) + Ok(Json(auth_request.to_json())) } // Now unused but not yet removed @@ -2680,23 +2629,8 @@ async fn get_auth_requests_pending(headers: Headers, conn: DbConn) -> JsonResult "data": auth_requests .iter() .filter(|request| request.approved.is_none()) - .map(|request| { - let response_date_utc = request.response_date.map(|response_date| format_date(&response_date)); - - json!({ - "id": request.uuid, - "publicKey": request.public_key, - "requestDeviceType": DeviceType::from_i32(request.device_type).to_string(), - "requestIpAddress": request.request_ip, - "key": request.enc_key, - "masterPasswordHash": request.master_password_hash, - "creationDate": format_date(&request.creation_date), - "responseDate": response_date_utc, - "requestApproved": request.approved, - "origin": CONFIG.domain_origin(), - "object":"auth-request" - }) - }).collect::>(), + .map(AuthRequest::to_json) + .collect::>(), "continuationToken": null, "object": "list" }))) diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index 32b4fcb1..b6c9d5cd 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -1,6 +1,7 @@ use std::collections::{HashMap, HashSet}; use chrono::{NaiveDateTime, Utc}; + use rocket::{ Route, form::{Form, FromForm}, @@ -12,7 +13,7 @@ use serde_json::Value; use crate::{ CONFIG, - api::{self, ApiResult, EmptyResult, JsonResult, Notify, PasswordOrOtpData, UpdateType, core::log_event}, + api::{self, EmptyResult, JsonResult, Notify, PasswordOrOtpData, UpdateType, core::log_event}, auth::ClientVersion, auth::{Headers, OrgIdGuard, OwnerHeaders}, config::PathType, @@ -842,7 +843,7 @@ pub async fn seed_cipher( user_id: &UserId, folder_ids: &HashMap, conn: &DbConn, -) -> ApiResult { +) -> api::ApiResult { // Not in the request model, but a trashed cipher has to stay trashed let deleted_at = encrypted.get("deletedDate").and_then(Value::as_str).map(parse_seed_date).transpose()?; let mut data: CipherData = serde_json::from_value(encrypted)?; @@ -889,7 +890,7 @@ pub async fn seed_cipher( } #[cfg(feature = "unsafe_test_mode")] -fn parse_seed_date(date: &str) -> ApiResult { +fn parse_seed_date(date: &str) -> api::ApiResult { match chrono::DateTime::parse_from_rfc3339(date) { Ok(date) => Ok(date.naive_utc()), Err(e) => err!(format!("Invalid date {}: {e}", date.escape_debug())), @@ -1518,6 +1519,13 @@ async fn share_cipher_by_uuid( false, ) .await?; + // The moved attachments now count against the organization's limit + if transfer_cipher { + let moved: i64 = Attachment::find_by_cipher(&cipher.uuid, conn).await.iter().map(|a| a.file_size).sum(); + if moved > 0 { + check_attachment_space(&cipher, moved, moved, conn).await?; + } + } for col_id in &shared_to_collections { CollectionCipher::save(&cipher.uuid, col_id, conn).await?; } @@ -1619,17 +1627,17 @@ enum FileUploadType { // Azure = 1, // only used upstream } -/// Remaining attachment storage in bytes for the cipher's owner, `None` when unlimited. -/// `size_adjust` credits a v2 attachment whose record already counts as used. -async fn attachment_size_limit(cipher: &Cipher, size_adjust: i64, conn: &DbConn) -> ApiResult> { +/// Fails when `size` more bytes don't fit in the attachment storage of the cipher's owner. +/// `size_adjust` credits bytes already counted as used, such as a v2 attachment's reserved record. +async fn check_attachment_space(cipher: &Cipher, size: i64, size_adjust: i64, conn: &DbConn) -> EmptyResult { let (limit_kb, already_used) = if let Some(ref user_id) = cipher.user_uuid { let Some(limit_kb) = CONFIG.user_attachment_limit() else { - return Ok(None); + return Ok(()); }; (limit_kb, Attachment::size_by_user(user_id, conn).await) } else if let Some(ref org_id) = cipher.organization_uuid { let Some(limit_kb) = CONFIG.org_attachment_limit() else { - return Ok(None); + return Ok(()); }; (limit_kb, Attachment::size_by_org(org_id, conn).await) } else { @@ -1649,8 +1657,11 @@ async fn attachment_size_limit(cipher: &Cipher, size_adjust: i64, conn: &DbConn) if left <= 0 { err!("Attachment storage limit reached! Delete some attachments to free up space") } + if size > left { + err!("Attachment storage limit exceeded with this file"); + } - Ok(Some(left)) + Ok(()) } /// v2 API for creating an attachment associated with a cipher. @@ -1688,11 +1699,7 @@ async fn post_attachment_v2( err!("Max file size is 525 MB.") } - if let Some(size_limit) = attachment_size_limit(&cipher, 0, &conn).await? - && file_size > size_limit - { - err!("Attachment storage limit exceeded with this file"); - } + check_attachment_space(&cipher, file_size, 0, &conn).await?; let attachment_id = crypto::generate_attachment_id(); let attachment = @@ -1762,11 +1769,7 @@ async fn save_attachment( Some(a) => a.file_size, // v2 API }; - if let Some(size_limit) = attachment_size_limit(&cipher, size_adjust, &conn).await? - && size > size_limit - { - err!("Attachment storage limit exceeded with this file"); - } + check_attachment_space(&cipher, size, size_adjust, &conn).await?; let file_id = match &attachment { Some(attachment) => attachment.id.clone(), // v2 API diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index a25306c3..84edd850 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -120,11 +120,12 @@ struct OrgData { plan_type: NumberOrString, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] #[serde(rename_all = "camelCase")] struct OrganizationUpdateData { billing_email: String, name: String, + keys: Option, } #[derive(Deserialize)] @@ -160,18 +161,24 @@ impl FullCollectionData { #[derive(Deserialize)] #[serde(rename_all = "camelCase")] struct CollectionGroupData { + #[serde(default)] hide_passwords: bool, id: GroupId, + #[serde(default)] read_only: bool, + #[serde(default)] manage: bool, } #[derive(Deserialize)] #[serde(rename_all = "camelCase")] struct CollectionMembershipData { + #[serde(default)] hide_passwords: bool, id: MembershipId, + #[serde(default)] read_only: bool, + #[serde(default)] manage: bool, } @@ -309,6 +316,16 @@ async fn put_organization( org.name = data.name; org.billing_email = data.billing_email.to_lowercase(); + if let Some(keys) = data.keys + && !keys.public_key.trim().is_empty() + && !keys.encrypted_private_key.trim().is_empty() + && org.public_key.as_deref().is_none_or(|k| k.trim().is_empty()) + && org.private_key.as_deref().is_none_or(|k| k.trim().is_empty()) + { + org.public_key = Some(keys.public_key); + org.private_key = Some(keys.encrypted_private_key); + } + org.save(&conn).await?; log_event( @@ -2294,7 +2311,9 @@ async fn post_bulk_collections(data: Json, headers: Headers // Only act on existing cipher uuid's // Do not abort the operation just ignore it, it could be a cipher was just deleted for example if let Some(cipher) = Cipher::find_by_uuid_and_org(cipher_id, &data.organization_id, &conn).await - && cipher.is_write_accessible_to_user(&headers.user.uuid, CipherAccessScope::OrganizationAdmin, &conn).await + && cipher + .is_in_editable_collection_by_user(&headers.user.uuid, CipherAccessScope::OrganizationAdmin, &conn) + .await { // When selecting a specific collection from the left filter list, and use the bulk option, you can remove an item from that collection // In these cases the client will call this endpoint twice, once for adding the new collections and a second for deleting. @@ -2344,9 +2363,15 @@ async fn list_policies_token(org_id: OrganizationId, token: &str, conn: DbConn) return Ok(Json(json!({}))); } - // TODO: We receive the invite token as ?token=<>, validate it contains the org id + let Some(member) = Membership::find_by_uuid_and_org(&invite.member_id, &org_id, &conn).await else { + err!("Organization not found", "The invited membership no longer exists") + }; + if member.user_uuid != invite.sub || member.status != MembershipStatus::Invited as i32 { + err!("Organization not found", "The membership is not a pending invitation of this user") + } + let policies = OrgPolicy::find_by_org(&org_id, &conn).await; - let policies_json: Vec = policies.iter().map(OrgPolicy::to_json).collect(); + let policies_json: Vec = policies.iter().filter(|p| p.enabled).map(OrgPolicy::to_json).collect(); Ok(Json(json!({ "data": policies_json, @@ -2462,7 +2487,6 @@ async fn put_policy( // Vaultwarden encouraged to use multiple orgs instead of groups because groups were not available in the past // Now that groups are available we can enforce this option when wanted. // We put this behind a config option to prevent breaking current installation. - // Maybe we want to enable this by default in the future, but currently it is disabled by default. if CONFIG.enforce_single_org_with_reset_pw_policy() { if pol_type_enum == OrgPolicyType::ResetPassword && data.enabled { let single_org_policy_enabled = OrgPolicy::find_by_org_and_type(&org_id, OrgPolicyType::SingleOrg, &conn) @@ -3000,8 +3024,11 @@ impl GroupRequest { #[serde(rename_all = "camelCase")] struct CollectionData { id: CollectionId, + #[serde(default)] read_only: bool, + #[serde(default)] hide_passwords: bool, + #[serde(default)] manage: bool, } diff --git a/src/config.rs b/src/config.rs index 185921c7..35a58589 100644 --- a/src/config.rs +++ b/src/config.rs @@ -736,6 +736,7 @@ make_config! { /// running on the same host or container network), the string "all" to accept it from anywhere, /// or a comma separated list of IPs and CIDR ranges. For a list header like X-Forwarded-For, the /// client IP is the rightmost address that isn't a trusted proxy, so list every proxy in the chain. + /// "local" also trusts 6to4, Teredo and local-use NAT64 addresses, which can carry clients from anywhere. ip_header_trusted_proxies: String, true, def, "local".to_owned(); /// Icon service |> The predefined icon services are: internal, bitwarden, duckduckgo, google. /// To specify a custom icon service, set a URL template with exactly one instance of `{}`, @@ -770,7 +771,8 @@ make_config! { /// Useful to hide other servers in the local network. Check the WIKI for more details http_request_block_regex: String, true, option; /// Block non global IPs |> Enabling this will cause the internal HTTP client to refuse to connect to any non global IP address. - /// Useful to secure your internal environment: See https://en.wikipedia.org/wiki/Reserved_IP_addresses for a list of IPs which it will block + /// Useful to secure your internal environment: See https://en.wikipedia.org/wiki/Reserved_IP_addresses for a list of IPs which it will block. + /// Requests through an outbound proxy (HTTP_PROXY, HTTPS_PROXY or ALL_PROXY) aren't checked, because the proxy resolves the names. http_request_block_non_global_ips: bool, true, auto, |c| c.icon_blacklist_non_global_ips; /// Disable Two-Factor remember |> Enabling this would force the users to use a second factor to login every time. @@ -870,7 +872,7 @@ make_config! { /// Enforce Single Org with Reset Password Policy |> Enforce that the Single Org policy is enabled before setting the Reset Password policy /// Bitwarden enforces this by default. In Vaultwarden we encouraged to use multiple organizations because groups were not available. /// Setting this to true will enforce the Single Org Policy to be enabled before you can enable the Reset Password policy. - enforce_single_org_with_reset_pw_policy: bool, false, def, false; + enforce_single_org_with_reset_pw_policy: bool, false, def, true; /// Prefer IPv6 (AAAA) resolving |> This settings configures the DNS resolver to resolve IPv6 first, and if not available try IPv4 /// This could be useful in IPv6 only environments. diff --git a/src/db/models/auth_request.rs b/src/db/models/auth_request.rs index f2b0ecdc..221b78f7 100644 --- a/src/db/models/auth_request.rs +++ b/src/db/models/auth_request.rs @@ -4,6 +4,7 @@ use diesel::prelude::*; use serde_json::Value; use crate::{ + CONFIG, api::{ApiResult, EmptyResult}, crypto::ct_eq, db::{DbConn, schema::auth_requests}, @@ -12,7 +13,7 @@ use crate::{ }; use macros::UuidFromParam; -use super::{DeviceId, OrganizationId, UserId}; +use super::{DeviceId, DeviceType, OrganizationId, UserId}; #[derive(Identifiable, Queryable, Insertable, AsChangeset, Deserialize, Serialize)] #[diesel(table_name = auth_requests)] @@ -73,6 +74,24 @@ impl AuthRequest { } } + pub fn to_json(&self) -> Value { + json!({ + "id": self.uuid, + "publicKey": self.public_key, + "requestDeviceIdentifier": self.request_device_identifier, + "requestDeviceTypeValue": self.device_type, + "requestDeviceType": DeviceType::from_i32(self.device_type).to_string(), + "requestIpAddress": self.request_ip, + "key": self.enc_key, + "masterPasswordHash": self.master_password_hash, + "creationDate": format_date(&self.creation_date), + "responseDate": self.response_date.as_ref().map(format_date), + "requestApproved": self.approved.unwrap_or(false), + "origin": CONFIG.domain_origin(), + "object": "auth-request" + }) + } + pub fn to_json_for_pending_device(&self) -> Value { json!({ "id": self.uuid, diff --git a/src/db/models/collection.rs b/src/db/models/collection.rs index 0c0367ea..651c94ff 100644 --- a/src/db/models/collection.rs +++ b/src/db/models/collection.rs @@ -995,11 +995,7 @@ impl CollectionMembership { "id": self.membership_uuid, "readOnly": self.read_only, "hidePasswords": self.hide_passwords, - "manage": membership_type >= MembershipType::Admin - || self.manage - || (membership_type == MembershipType::Manager - && !self.read_only - && !self.hide_passwords), + "manage": membership_type >= MembershipType::Admin || self.manage, }) } } diff --git a/src/db/models/organization.rs b/src/db/models/organization.rs index 37ce8a15..b28c00e1 100644 --- a/src/db/models/organization.rs +++ b/src/db/models/organization.rs @@ -811,6 +811,7 @@ impl Membership { "useResetPassword": CONFIG.mail_enabled(), "ssoBound": false, // Not supported "useSso": false, // Not supported + "ssoEnabled": false, "useKeyConnector": false, "useSecretsManager": false, // Not supported (Not AGPLv3 Licensed) "usePasswordManager": true, @@ -824,6 +825,7 @@ impl Membership { "useOrganizationDomains": false, // Not supported (Linked to SSO) "usePam": false, // Not supported "usePhishingBlocker": false, + "useAutomaticUserConfirmation": false, "organizationUserId": self.uuid, "providerId": null, @@ -831,6 +833,7 @@ impl Membership { "providerType": null, "familySponsorshipFriendlyName": null, "familySponsorshipAvailable": false, + "isAdminInitiated": false, "productTierType": 3, // Enterprise tier "keyConnectorEnabled": false, "keyConnectorUrl": null, @@ -838,6 +841,7 @@ impl Membership { "familySponsorshipValidUntil": null, "familySponsorshipToDelete": null, "accessSecretsManager": false, + "accessPam": false, // limit collection creation to managers with access_all permission to prevent issues "limitCollectionCreation": self.atype < MembershipType::Manager || !self.access_all, "limitCollectionDeletion": true, @@ -905,7 +909,7 @@ impl Membership { "id": cu.collection_uuid, "readOnly": cu.read_only, "hidePasswords": cu.hide_passwords, - "manage": cu.manage || (self.atype == MembershipType::Manager && !cu.read_only && !cu.hide_passwords), + "manage": cu.manage, }) }) .collect() diff --git a/src/sso_client.rs b/src/sso_client.rs index 37442ae2..7051f77f 100644 --- a/src/sso_client.rs +++ b/src/sso_client.rs @@ -246,14 +246,13 @@ impl Client { let mut exchange = self.core_client.exchange_code(oidc_code); + Self::check_client_verifier(&client_verifier, sso_auth)?; if CONFIG.sso_pkce() { exchange = exchange.set_pkce_verifier(PkceCodeVerifier::new(client_verifier.into())); - } else { - Self::check_client_verifier(&client_verifier, sso_auth)?; } match exchange.request_async(&self.http_client).await { - Err(err) => err!(format!("Failed to contact token endpoint: {:?}", err)), + Err(err) => err!(format!("Failed to contact token endpoint: {err}")), Ok(token_response) => { let oidc_nonce = Nonce::new(sso_auth.nonce.clone()); diff --git a/src/util.rs b/src/util.rs index 9a4a329b..a7513eb9 100644 --- a/src/util.rs +++ b/src/util.rs @@ -147,7 +147,7 @@ impl Cors { // Check a request's `Origin` header against the list of allowed origins. // If a match exists, return it. Otherwise, return None. - fn get_allowed_origin(headers: &HeaderMap<'_>) -> Option { + fn get_allowed_origin(headers: &HeaderMap<'_>, allow_sso: bool) -> Option { let origin = Self::get_header(headers, "Origin"); let safari_extension_origin = "file://"; let desktop_custom_file_origin = "bw-desktop-file://bundle"; @@ -155,7 +155,7 @@ impl Cors { if origin == CONFIG.domain_origin() || origin == safari_extension_origin || origin == desktop_custom_file_origin - || (CONFIG.sso_enabled() && origin == CONFIG.sso_authority()) + || (allow_sso && CONFIG.sso_enabled() && origin == CONFIG.sso_authority()) { Some(origin) } else { @@ -175,8 +175,10 @@ impl Fairing for Cors { async fn on_response<'r>(&self, request: &'r Request<'_>, response: &mut Response<'r>) { let req_headers = request.headers(); + // The admin panel authenticates with a cookie, so the SSO provider's pages must not reach it + let allow_sso = !request.uri().path().as_str().starts_with(&format!("{}/admin", CONFIG.domain_path())); - if let Some(origin) = Self::get_allowed_origin(req_headers) { + if let Some(origin) = Self::get_allowed_origin(req_headers, allow_sso) { response.set_header(Header::new("Access-Control-Allow-Origin", origin)); } From b91cab3c24a75f3dc01dffa93790bb34197f1680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Tue, 24 Nov 2026 10:01:35 +0100 Subject: [PATCH 11/12] Update web vault to v2026.11.0, Playwright tests and dependencies (#8002) --- .github/workflows/build.yml | 3 + .github/workflows/sdk-live-tests.yml | 2 + docker/DockerSettings.yaml | 4 +- docker/Dockerfile.alpine | 12 +- docker/Dockerfile.debian | 12 +- playwright/README.md | 2 +- playwright/compose/playwright/Dockerfile | 6 +- playwright/docker-compose.yml | 12 +- playwright/global-utils.ts | 8 +- playwright/package-lock.json | 1398 ++++++++++---------- playwright/package.json | 10 +- playwright/playwright.config.ts | 5 +- playwright/tests/collection.spec.ts | 2 +- playwright/tests/cyphers.spec.ts | 21 +- playwright/tests/organization.smtp.spec.ts | 4 +- playwright/tests/secrets.spec.ts | 4 +- playwright/tests/send.spec.ts | 4 +- playwright/tests/setups/orgs.ts | 19 +- playwright/tests/sso_organization.spec.ts | 4 +- 19 files changed, 788 insertions(+), 744 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 97d640ae..5005a285 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -120,6 +120,9 @@ jobs: # Set as the default toolchain rustup default "${RUST_TOOLCHAIN}" + # rust-cache keys on every installed toolchain, so the runner image's stable would change the key on each image update + rustup toolchain uninstall stable + # Show environment - name: "Show environment" run: | diff --git a/.github/workflows/sdk-live-tests.yml b/.github/workflows/sdk-live-tests.yml index 1d75eead..4efe6775 100644 --- a/.github/workflows/sdk-live-tests.yml +++ b/.github/workflows/sdk-live-tests.yml @@ -107,6 +107,8 @@ jobs: rustup target add wasm32-unknown-unknown rustup component add rust-src fi + # rust-cache keys on every installed toolchain, so the runner image's stable would change the key on each image update + rustup toolchain uninstall stable # One cache per SDK source, so that neither restores the other's. # Only save caches on main to save cache space. diff --git a/docker/DockerSettings.yaml b/docker/DockerSettings.yaml index 4ef24c9d..423b16e6 100644 --- a/docker/DockerSettings.yaml +++ b/docker/DockerSettings.yaml @@ -1,6 +1,6 @@ --- -vault_version: "v2026.10.1" -vault_image_digest: "sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52" +vault_version: "v2026.11.0" +vault_image_digest: "sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9" # Cross Compile Docker Helper Scripts v1.10.0 # We use the linux/amd64 platform shell scripts since there is no difference between the different platform scripts # https://github.com/tonistiigi/xx | https://hub.docker.com/r/tonistiigi/xx/tags diff --git a/docker/Dockerfile.alpine b/docker/Dockerfile.alpine index 99bec263..a2901df2 100644 --- a/docker/Dockerfile.alpine +++ b/docker/Dockerfile.alpine @@ -19,15 +19,15 @@ # - From https://hub.docker.com/r/vaultwarden/web-vault/tags, # click the tag name to view the digest of the image it currently points to. # - From the command line: -# $ docker pull docker.io/vaultwarden/web-vault:v2026.10.1 -# $ docker image inspect --format "{{.RepoDigests}}" docker.io/vaultwarden/web-vault:v2026.10.1 -# [docker.io/vaultwarden/web-vault@sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52] +# $ docker pull docker.io/vaultwarden/web-vault:v2026.11.0 +# $ docker image inspect --format "{{.RepoDigests}}" docker.io/vaultwarden/web-vault:v2026.11.0 +# [docker.io/vaultwarden/web-vault@sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9] # # - Conversely, to get the tag name from the digest: -# $ docker image inspect --format "{{.RepoTags}}" docker.io/vaultwarden/web-vault@sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52 -# [docker.io/vaultwarden/web-vault:v2026.10.1] +# $ docker image inspect --format "{{.RepoTags}}" docker.io/vaultwarden/web-vault@sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9 +# [docker.io/vaultwarden/web-vault:v2026.11.0] # -FROM --platform=linux/amd64 docker.io/vaultwarden/web-vault@sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52 AS vault +FROM --platform=linux/amd64 docker.io/vaultwarden/web-vault@sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9 AS vault ########################## ALPINE BUILD IMAGES ########################## ## NOTE: The Alpine Base Images do not support other platforms then linux/amd64 and linux/arm64 diff --git a/docker/Dockerfile.debian b/docker/Dockerfile.debian index 612f132f..f023e837 100644 --- a/docker/Dockerfile.debian +++ b/docker/Dockerfile.debian @@ -19,15 +19,15 @@ # - From https://hub.docker.com/r/vaultwarden/web-vault/tags, # click the tag name to view the digest of the image it currently points to. # - From the command line: -# $ docker pull docker.io/vaultwarden/web-vault:v2026.10.1 -# $ docker image inspect --format "{{.RepoDigests}}" docker.io/vaultwarden/web-vault:v2026.10.1 -# [docker.io/vaultwarden/web-vault@sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52] +# $ docker pull docker.io/vaultwarden/web-vault:v2026.11.0 +# $ docker image inspect --format "{{.RepoDigests}}" docker.io/vaultwarden/web-vault:v2026.11.0 +# [docker.io/vaultwarden/web-vault@sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9] # # - Conversely, to get the tag name from the digest: -# $ docker image inspect --format "{{.RepoTags}}" docker.io/vaultwarden/web-vault@sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52 -# [docker.io/vaultwarden/web-vault:v2026.10.1] +# $ docker image inspect --format "{{.RepoTags}}" docker.io/vaultwarden/web-vault@sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9 +# [docker.io/vaultwarden/web-vault:v2026.11.0] # -FROM --platform=linux/amd64 docker.io/vaultwarden/web-vault@sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52 AS vault +FROM --platform=linux/amd64 docker.io/vaultwarden/web-vault@sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9 AS vault ########################## Cross Compile Docker Helper Scripts ########################## ## We use the linux/amd64 no matter which Build Platform, since these are all bash scripts diff --git a/playwright/README.md b/playwright/README.md index cd18bebd..22402a4e 100644 --- a/playwright/README.md +++ b/playwright/README.md @@ -12,7 +12,7 @@ Databases (`Mariadb`, `Mysql` and `Postgres`) and `Playwright` will run in conta ### Running Playwright outside docker It's possible to run `Playwright` outside of the container, this remove the need to rebuild the image for each change. -You'll additionally need `nodejs` then run: +You'll additionally need `nodejs` 24 or newer, then run: ```bash npm ci --ignore-scripts --allow-git=none --allow-remote=none diff --git a/playwright/compose/playwright/Dockerfile b/playwright/compose/playwright/Dockerfile index 6b48c7dc..12b8ca65 100644 --- a/playwright/compose/playwright/Dockerfile +++ b/playwright/compose/playwright/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.io/library/debian:trixie-slim +FROM docker.io/library/node:26-trixie-slim SHELL ["/bin/bash", "-o", "pipefail", "-c"] @@ -19,8 +19,6 @@ RUN apt-get update \ git \ libmariadb-dev-compat \ libpq5 \ - nodejs \ - npm \ openssl \ && rm -rf /var/lib/apt/lists/* @@ -36,5 +34,5 @@ COPY compose ./compose COPY *.ts test.env ./ COPY tests ./tests -ENTRYPOINT ["/usr/bin/npx", "playwright"] +ENTRYPOINT ["/usr/local/bin/npx", "playwright"] CMD ["test"] diff --git a/playwright/docker-compose.yml b/playwright/docker-compose.yml index b6ac6f0f..12c19073 100644 --- a/playwright/docker-compose.yml +++ b/playwright/docker-compose.yml @@ -65,7 +65,7 @@ services: Mariadb: profiles: ["playwright"] container_name: playwright_mariadb - image: mariadb:12.2.2 + image: mariadb:12.3.3 env_file: test.env healthcheck: test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] @@ -77,7 +77,7 @@ services: Mysql: profiles: ["playwright"] container_name: playwright_mysql - image: mysql:9.7.0 + image: mysql:9.7.4 env_file: test.env healthcheck: test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"] @@ -89,7 +89,7 @@ services: Postgres: profiles: ["playwright"] container_name: playwright_postgres - image: postgres:18.4 + image: postgres:18.7 env_file: test.env healthcheck: test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] @@ -101,7 +101,7 @@ services: Maildev: profiles: ["vaultwarden", "maildev"] container_name: maildev - image: timshel/maildev:3.2.19 + image: timshel/maildev:3.3.8 ports: - ${SMTP_PORT}:1025 - 1080:1080 @@ -109,7 +109,7 @@ services: Keycloak: profiles: ["keycloak", "vaultwarden"] container_name: keycloak-${ENV:-dev} - image: quay.io/keycloak/keycloak:26.6.2 + image: quay.io/keycloak/keycloak:26.8.2 network_mode: "host" command: - start-dev @@ -124,7 +124,7 @@ services: context: compose/keycloak dockerfile: Dockerfile args: - KEYCLOAK_VERSION: 26.6.2 + KEYCLOAK_VERSION: 26.8.2 depends_on: - Keycloak restart: "no" diff --git a/playwright/global-utils.ts b/playwright/global-utils.ts index 937de651..0516521e 100644 --- a/playwright/global-utils.ts +++ b/playwright/global-utils.ts @@ -221,13 +221,15 @@ export async function restartVault(page: Page, testInfo: TestInfo, env, resetDB: } export async function checkNotification(page: Page, hasText: string) { - await expect(page.locator('bit-toast', { hasText })).toBeVisible(); + const toast = page.locator('bit-toast', { hasText }); + await expect(toast).toBeVisible(); + // An open dialog marks the toasts aria-hidden and covers them: find the button by CSS and dispatch the click. try { - await page.locator('bit-toast', { hasText }).getByRole('button', { name: 'Close' }).click({force: true, timeout: 10_000}); + await toast.locator('button[aria-label="Close"]').dispatchEvent('click', undefined, { timeout: 5_000 }); } catch (error) { console.log(`Closing notification failed but it should now be invisible (${error})`); } - await expect(page.locator('bit-toast', { hasText })).toHaveCount(0); + await expect(toast).toHaveCount(0); } export async function cleanLanding(page: Page) { diff --git a/playwright/package-lock.json b/playwright/package-lock.json index 57f5bcaf..17873f52 100644 --- a/playwright/package-lock.json +++ b/playwright/package-lock.json @@ -9,215 +9,23 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "mysql2": "3.22.3", - "otpauth": "9.5.1", - "pg": "8.21.0" + "mysql2": "3.24.6", + "otpauth": "9.6.0", + "pg": "8.23.1" }, "devDependencies": { - "@playwright/test": "1.60.0", + "@playwright/test": "1.65.1", "dotenv": "17.4.2", "dotenv-expand": "13.0.0", - "maildev": "npm:@timshel_npm/maildev@3.2.19" - } - }, - "node_modules/@asamuzakjp/css-color": { - "version": "5.1.11", - "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-5.1.11.tgz", - "integrity": "sha512-KVw6qIiCTUQhByfTd78h2yD1/00waTmm9uy/R7Ck/ctUyAPj+AEDLkQIdJW0T8+qGgj3j5bpNKK7Q3G+LedJWg==", - "dev": true, - "dependencies": { - "@asamuzakjp/generational-cache": "^1.0.1", - "@csstools/css-calc": "^3.2.0", - "@csstools/css-color-parser": "^4.1.0", - "@csstools/css-parser-algorithms": "^4.0.0", - "@csstools/css-tokenizer": "^4.0.0" - }, - "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0" - } - }, - "node_modules/@asamuzakjp/dom-selector": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-7.1.1.tgz", - "integrity": "sha512-67RZDnYRc8H/8MLDgQCDE//zoqVFwajkepHZgmXrbwybzXOEwOWGPYGmALYl9J2DOLfFPPs6kKCqmbzV895hTQ==", - "dev": true, - "dependencies": { - "@asamuzakjp/generational-cache": "^1.0.1", - "@asamuzakjp/nwsapi": "^2.3.9", - "bidi-js": "^1.0.3", - "css-tree": "^3.2.1", - "is-potential-custom-element-name": "^1.0.1" - }, - "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0" - } - }, - "node_modules/@asamuzakjp/generational-cache": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@asamuzakjp/generational-cache/-/generational-cache-1.0.1.tgz", - "integrity": "sha512-wajfB8KqzMCN2KGNFdLkReeHncd0AslUSrvHVvvYWuU8ghncRJoA50kT3zP9MVL0+9g4/67H+cdvBskj9THPzg==", - "dev": true, - "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0" - } - }, - "node_modules/@asamuzakjp/nwsapi": { - "version": "2.3.9", - "resolved": "https://registry.npmjs.org/@asamuzakjp/nwsapi/-/nwsapi-2.3.9.tgz", - "integrity": "sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==", - "dev": true - }, - "node_modules/@bramus/specificity": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.2.tgz", - "integrity": "sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==", - "dev": true, - "dependencies": { - "css-tree": "^3.0.0" - }, - "bin": { - "specificity": "bin/cli.js" - } - }, - "node_modules/@csstools/color-helpers": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.0.2.tgz", - "integrity": "sha512-LMGQLS9EuADloEFkcTBR3BwV/CGHV7zyDxVRtVDTwdI2Ca4it0CCVTT9wCkxSgokjE5Ho41hEPgb8OEUwoXr6Q==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "engines": { - "node": ">=20.19.0" - } - }, - "node_modules/@csstools/css-calc": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.2.1.tgz", - "integrity": "sha512-DtdHlgXh5ZkA43cwBcAm+huzgJiwx3ZTWVjBs94kwz2xKqSimDA3lBgCjphYgwgVUMWatSM0pDd8TILB1yrVVg==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "engines": { - "node": ">=20.19.0" - }, - "peerDependencies": { - "@csstools/css-parser-algorithms": "^4.0.0", - "@csstools/css-tokenizer": "^4.0.0" - } - }, - "node_modules/@csstools/css-color-parser": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.1.1.tgz", - "integrity": "sha512-eZ5XOtyhK+mggRafYUWzA0tvaYOFgdY8AkgQiCJF9qNAePnUo/zmsqqYubBBb3sQ8uNUaSKTY9s9klfRaAXL0g==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "dependencies": { - "@csstools/color-helpers": "^6.0.2", - "@csstools/css-calc": "^3.2.1" - }, - "engines": { - "node": ">=20.19.0" - }, - "peerDependencies": { - "@csstools/css-parser-algorithms": "^4.0.0", - "@csstools/css-tokenizer": "^4.0.0" - } - }, - "node_modules/@csstools/css-parser-algorithms": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.0.tgz", - "integrity": "sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "engines": { - "node": ">=20.19.0" - }, - "peerDependencies": { - "@csstools/css-tokenizer": "^4.0.0" - } - }, - "node_modules/@csstools/css-syntax-patches-for-csstree": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.4.tgz", - "integrity": "sha512-wgsqt92b7C7tQhIdPNxj0n9zuUbQlvAuI1exyzeNrOKOi62SD7ren8zqszmpVREjAOqg8cD2FqYhQfAuKjk4sw==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "peerDependencies": { - "css-tree": "^3.2.1" - }, - "peerDependenciesMeta": { - "css-tree": { - "optional": true - } - } - }, - "node_modules/@csstools/css-tokenizer": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.0.tgz", - "integrity": "sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/csstools" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/csstools" - } - ], - "engines": { - "node": ">=20.19.0" + "maildev": "npm:@timshel_npm/maildev@3.3.8" } }, "node_modules/@exodus/bytes": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.15.1.tgz", - "integrity": "sha512-S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.16.0.tgz", + "integrity": "sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA==", "dev": true, + "license": "MIT", "engines": { "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, @@ -231,9 +39,10 @@ } }, "node_modules/@noble/hashes": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz", - "integrity": "sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.4.0.tgz", + "integrity": "sha512-X5XaVWZIBCT7HHZGm5I7ZQXDwLG+bGXuSrMQAW+7Zvl87h1kmc1ZB1VSRJcpUfoUrGQp4Fkoxm5kZ+Ms+aW+eA==", + "license": "MIT", "engines": { "node": ">= 20.19.0" }, @@ -242,53 +51,61 @@ } }, "node_modules/@playwright/test": { - "version": "1.60.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.60.0.tgz", - "integrity": "sha512-O71yZIbAh/PxDMNGns37GHBIfrVkEVyn+AXyIa5dOTfb4/xNvRWV+Vv/NMbNCtODB/pO7vLlF2OTmMVLhmr7Ag==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.65.1.tgz", + "integrity": "sha512-y+NCIRm2LvY4slUVWvGh1nujJ8RF/hEisIsq2mtUPgdQC4L701bq5hZGMhrpeXjACvwvO9tj5dJqhvM6TP9lbw==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "playwright": "1.60.0" + "playwright": "1.65.1" }, "bin": { "playwright": "cli.js" }, "engines": { - "node": ">=18" + "node": ">=20" } }, "node_modules/@selderee/plugin-htmlparser2": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@selderee/plugin-htmlparser2/-/plugin-htmlparser2-0.11.0.tgz", - "integrity": "sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ==", + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@selderee/plugin-htmlparser2/-/plugin-htmlparser2-0.12.0.tgz", + "integrity": "sha512-oELmoyA6ML9jDRMV3kgcMQFKxUfBU0yFVn6yTctVaLT5ygXnxH52I3TZEgV9EhXJC68/uFvE5Daj1/25c0Xa/A==", "dev": true, + "license": "MIT", "dependencies": { - "domhandler": "^5.0.3", - "selderee": "^0.11.0" + "domelementtype": "~2.3.0", + "domhandler": "~5.0.3" }, "funding": { - "url": "https://ko-fi.com/killymxi" + "url": "https://github.com/sponsors/KillyMXI" + }, + "peerDependencies": { + "selderee": "~0.12.0" } }, "node_modules/@socket.io/component-emitter": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz", "integrity": "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/cors": { "version": "2.8.19", "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.19.tgz", "integrity": "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } }, "node_modules/@types/mailparser": { - "version": "3.4.6", - "resolved": "https://registry.npmjs.org/@types/mailparser/-/mailparser-3.4.6.tgz", - "integrity": "sha512-wVV3cnIKzxTffaPH8iRnddX1zahbYB1ZEoAxyhoBo3TBCBuK6nZ8M8JYO/RhsCuuBVOw/DEN/t/ENbruwlxn6Q==", + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/@types/mailparser/-/mailparser-3.9.0.tgz", + "integrity": "sha512-YnhrRiRVDiEAphFvd72hKa1n8y2b9Q3rgSQiONZQyhQz67h5g4MZHNApET3XWXVEFdInWtHqDHKEwnyjxU3QVw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "iconv-lite": "^0.6.3" @@ -307,38 +124,32 @@ "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", "dev": true, + "license": "MIT", "optional": true }, "node_modules/@types/ws": { - "version": "8.18.1", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz", - "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==", + "version": "8.18.2", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.2.tgz", + "integrity": "sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } }, "node_modules/@zone-eu/mailsplit": { - "version": "5.4.8", - "resolved": "https://registry.npmjs.org/@zone-eu/mailsplit/-/mailsplit-5.4.8.tgz", - "integrity": "sha512-eEyACj4JZ7sjzRvy26QhLgKEMWwQbsw1+QZnlLX+/gihcNH07lVPOcnwf5U6UAL7gkc//J3jVd76o/WS+taUiA==", - "dev": true, - "dependencies": { - "libbase64": "1.3.0", - "libmime": "5.3.7", - "libqp": "2.1.1" - } - }, - "node_modules/@zone-eu/mailsplit/node_modules/libmime": { - "version": "5.3.7", - "resolved": "https://registry.npmjs.org/libmime/-/libmime-5.3.7.tgz", - "integrity": "sha512-FlDb3Wtha8P01kTL3P9M+ZDNDWPKPmKHWaU/cG/lg5pfuAwdflVpZE+wm9m7pKmC5ww6s+zTxBKS1p6yl3KpSw==", + "version": "5.4.30", + "resolved": "https://registry.npmjs.org/@zone-eu/mailsplit/-/mailsplit-5.4.30.tgz", + "integrity": "sha512-qN0KT6/ziAFvo5TzscaqpurIJaJQEXPPtqBZnpyhiGrACOKLDVMV6Lm57kXt5e/8zZUWoYiSC8oKl/aewtrJDQ==", "dev": true, + "license": "(MIT OR EUPL-1.1+)", "dependencies": { - "encoding-japanese": "2.2.0", - "iconv-lite": "0.6.3", - "libbase64": "1.3.0", - "libqp": "2.1.1" + "libbase64": "1.4.1", + "libmime": "5.6.4", + "libqp": "3.0.1" + }, + "engines": { + "node": ">=20.0.0" } }, "node_modules/accepts": { @@ -346,6 +157,7 @@ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", "dev": true, + "license": "MIT", "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" @@ -355,12 +167,20 @@ } }, "node_modules/accepts/node_modules/negotiator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", - "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz", + "integrity": "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==", "dev": true, + "license": "MIT", + "dependencies": { + "content-type": "^2.1.0" + }, "engines": { - "node": ">= 0.6" + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/addressparser": { @@ -383,39 +203,49 @@ "node": ">= 6.0.0" } }, - "node_modules/base64id": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz", - "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==", + "node_modules/bcp-47": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/bcp-47/-/bcp-47-2.1.2.tgz", + "integrity": "sha512-wsv86UuNFuPnVieKLyECTT+CP1WSAHeoIg5P3xu2kA9Z+7fVPoKt7dxzSeEhtJel0AI+NW3fIW3KtTKQKUCngg==", "dev": true, - "engines": { - "node": "^4.5.0 || >= 5.9" + "license": "MIT", + "dependencies": { + "is-alphabetical": "^2.0.0", + "is-alphanumerical": "^2.0.0", + "is-decimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/bidi-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.0.3.tgz", - "integrity": "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==", + "node_modules/bcp-47-match": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/bcp-47-match/-/bcp-47-match-2.0.3.tgz", + "integrity": "sha512-JtTezzbAibu8G0R9op9zb3vcWZd9JF6M0xOYGPn0fNCd7wOpRB1mU2mH9T8gaBGbAAyIIVgB2G7xG0GP98zMAQ==", "dev": true, - "dependencies": { - "require-from-string": "^2.0.2" + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, "node_modules/body-parser": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.2.tgz", - "integrity": "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz", + "integrity": "sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==", "dev": true, + "license": "MIT", "dependencies": { "bytes": "^3.1.2", - "content-type": "^1.0.5", + "content-type": "^2.1.0", "debug": "^4.4.3", - "http-errors": "^2.0.0", - "iconv-lite": "^0.7.0", + "http-errors": "^2.0.1", + "iconv-lite": "^0.7.3", "on-finished": "^2.4.1", - "qs": "^6.14.1", - "raw-body": "^3.0.1", - "type-is": "^2.0.1" + "qs": "^6.16.1", + "raw-body": "^3.0.2", + "type-is": "^2.1.0" }, "engines": { "node": ">=18" @@ -430,6 +260,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -443,10 +274,11 @@ } }, "node_modules/body-parser/node_modules/iconv-lite": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", - "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==", + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", + "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", "dev": true, + "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -462,13 +294,15 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -478,6 +312,7 @@ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", "dev": true, + "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" @@ -491,6 +326,7 @@ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" @@ -503,12 +339,13 @@ } }, "node_modules/commander": { - "version": "14.0.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.3.tgz", - "integrity": "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-15.1.0.tgz", + "integrity": "sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=20" + "node": ">=22.12.0" } }, "node_modules/compressible": { @@ -516,6 +353,7 @@ "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", "dev": true, + "license": "MIT", "dependencies": { "mime-db": ">= 1.43.0 < 2" }, @@ -524,14 +362,16 @@ } }, "node_modules/compression": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/compression/-/compression-1.8.1.tgz", - "integrity": "sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w==", + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.8.2.tgz", + "integrity": "sha512-o8vI5RE5A6EVVOd9o41jKp41aJom+QTEO/Bx8MYNjexMo/Bv2WOjUfZr+aL0WnYSgymUy6zeguqLTsIhV0gMvQ==", "dev": true, + "license": "MIT", "dependencies": { "bytes": "3.1.2", "compressible": "~2.0.18", "debug": "2.6.9", + "destroy": "1.2.0", "negotiator": "~0.6.4", "on-headers": "~1.1.0", "safe-buffer": "5.2.1", @@ -539,13 +379,18 @@ }, "engines": { "node": ">= 0.8.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/content-disposition": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz", - "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-2.0.1.tgz", + "integrity": "sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==", "dev": true, + "license": "MIT", "engines": { "node": ">=18" }, @@ -555,12 +400,17 @@ } }, "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", "dev": true, + "license": "MIT", "engines": { - "node": ">= 0.6" + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/cookie": { @@ -568,6 +418,7 @@ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -577,6 +428,7 @@ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.6.0" } @@ -586,6 +438,7 @@ "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz", "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==", "dev": true, + "license": "MIT", "dependencies": { "object-assign": "^4", "vary": "^1" @@ -598,30 +451,18 @@ "url": "https://opencollective.com/express" } }, - "node_modules/css-tree": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", - "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", - "dev": true, - "dependencies": { - "mdn-data": "2.27.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" - } - }, "node_modules/data-urls": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz", - "integrity": "sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-8.0.0.tgz", + "integrity": "sha512-JQUCCK+/CAGbGGx618PlFZMXH81Jtj7t73CHv9dd/zVWvxgGT2zLFRjnKb+Ng46GIwcy+f7f88qd4duqllK+WQ==", "dev": true, + "license": "MIT", "dependencies": { "whatwg-mimetype": "^5.0.0", - "whatwg-url": "^16.0.0" + "whatwg-url": "^17.1.2" }, "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + "node": "^22.14.0 || >=24.0.0" } }, "node_modules/debug": { @@ -629,6 +470,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "2.0.0" } @@ -637,23 +479,27 @@ "version": "10.6.0", "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", - "dev": true - }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, - "engines": { - "node": ">=0.10.0" - } + "license": "MIT" }, - "node_modules/denque": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", - "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", + "node_modules/deepmerge-ts": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/deepmerge-ts/-/deepmerge-ts-8.0.2.tgz", + "integrity": "sha512-uqbvqLUMrc6p0MO+WBRtTxY55hmyh94WRwI5a++PZe54X+bfVh59FSN7uWCBCW1CCVjzjnrwzfI8zidE2obMMw==", + "dev": true, + "funding": [ + { + "type": "ko-fi", + "url": "https://ko-fi.com/rebeccastevens" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/deepmerge-ts" + } + ], + "license": "BSD-3-Clause", "engines": { - "node": ">=0.10" + "node": ">=16.9.0" } }, "node_modules/depd": { @@ -661,15 +507,28 @@ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, "node_modules/dom-serializer": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", "dev": true, + "license": "MIT", "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.2", @@ -689,13 +548,15 @@ "type": "github", "url": "https://github.com/sponsors/fb55" } - ] + ], + "license": "BSD-2-Clause" }, "node_modules/domhandler": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "domelementtype": "^2.3.0" }, @@ -707,10 +568,11 @@ } }, "node_modules/dompurify": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.1.tgz", - "integrity": "sha512-JahakDAIg1gyOm7dlgWSDjV4n7Ip2PKR55NIT6jrMfIgLFgWo81vdr1/QGqWtFNRqXP9UV71oVePtjqS2ebnPw==", + "version": "3.4.17", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.17.tgz", + "integrity": "sha512-B/pSlYVHQ58kqISD/yDjuJ1yfzI34m1gF4lAod2bwSRhiN4K5Cl3H8Af7hqB2PmTL911tdEudnnXn5FnhRoz0w==", "dev": true, + "license": "(MPL-2.0 OR Apache-2.0)", "optionalDependencies": { "@types/trusted-types": "^2.0.7" } @@ -720,6 +582,7 @@ "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz", "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "dom-serializer": "^2.0.0", "domelementtype": "^2.3.0", @@ -761,6 +624,7 @@ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", "dev": true, + "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", @@ -774,42 +638,49 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.3.tgz", + "integrity": "sha512-mIteYONiEfc4xWf2F1WXovh1c8npzS00vNeiUPdwFF+QlVJni+gNvpQltLMQhob8rew/bWWc/bGTuUr0EUGt0w==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/encoding-japanese": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-2.2.0.tgz", - "integrity": "sha512-EuJWwlHPZ1LbADuKTClvHtwbaFn4rOD+dRAbWysqEOXRc2Uui0hJInNJrsdH0c+OhJA4nrCBdSkW4DD5YxAo6A==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/encoding-japanese/-/encoding-japanese-2.5.0.tgz", + "integrity": "sha512-5TKhaMWTUF777NQ16OrAkJFuEd1uOnEBw8ODeXFTc/Y9csZZQ6/jiIS5r4aFuzfowu9gLGrE51zqI2H0dLwlmg==", "dev": true, + "license": "MIT", "engines": { - "node": ">=8.10.0" + "node": ">=18.0.0" } }, "node_modules/engine.io": { - "version": "6.6.8", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.6.8.tgz", - "integrity": "sha512-2agL3ueZhqxoVrfmntO8yuVj+uNSlIOnhykYHk3Cq0ShYPdUjjUiSJrQvXjq01I9jAuI0Zl2YO8Evv5Mqytm5g==", + "version": "6.6.11", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.6.11.tgz", + "integrity": "sha512-z34mGpLoY/82ZbkX1LqGMIaf3wjVMPL6gVC681QDqnmzJ26synI8qAE32P+a7UazmpJZ8UGrFIeAavgRfXzYrg==", "dev": true, + "license": "MIT", "dependencies": { "@types/cors": "^2.8.12", "@types/node": ">=10.0.0", "@types/ws": "^8.5.12", "accepts": "~1.3.4", - "base64id": "2.0.0", "cookie": "~0.7.2", "cors": "~2.8.5", "debug": "~4.4.1", "engine.io-parser": "~5.2.1", - "ws": "~8.20.1" + "ws": "~8.21.0" }, "engines": { "node": ">=10.2.0" @@ -820,6 +691,7 @@ "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.3.tgz", "integrity": "sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=10.0.0" } @@ -829,6 +701,7 @@ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", "dev": true, + "license": "MIT", "dependencies": { "mime-types": "~2.1.34", "negotiator": "0.6.3" @@ -842,6 +715,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -859,6 +733,7 @@ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -868,6 +743,7 @@ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, + "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, @@ -879,13 +755,15 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/engine.io/node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -895,6 +773,7 @@ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=0.12" }, @@ -907,6 +786,7 @@ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" } @@ -916,15 +796,17 @@ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", "dev": true, + "license": "MIT", "dependencies": { "es-errors": "^1.3.0" }, @@ -936,27 +818,30 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/etag": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/express": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", - "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/express/-/express-5.3.0.tgz", + "integrity": "sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==", "dev": true, + "license": "MIT", "dependencies": { "accepts": "^2.0.0", - "body-parser": "^2.2.1", - "content-disposition": "^1.0.0", - "content-type": "^1.0.5", + "body-parser": "^2.3.0", + "content-disposition": "^2.0.1", + "content-type": "^2.0.0", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", @@ -972,14 +857,14 @@ "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3.3", - "proxy-addr": "^2.0.7", - "qs": "^6.14.0", + "proxy-addr": "^2.0.8", + "qs": "^6.16.0", "range-parser": "^1.2.1", "router": "^2.2.0", "send": "^1.1.0", "serve-static": "^2.2.0", "statuses": "^2.0.1", - "type-is": "^2.0.1", + "type-is": "^2.1.0", "vary": "^1.1.2" }, "engines": { @@ -995,6 +880,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -1011,13 +897,15 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/finalhandler": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", @@ -1039,6 +927,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -1055,13 +944,15 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -1071,29 +962,17 @@ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -1111,6 +990,7 @@ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", @@ -1135,6 +1015,7 @@ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", "dev": true, + "license": "MIT", "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" @@ -1148,6 +1029,7 @@ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -1160,6 +1042,7 @@ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -1168,10 +1051,11 @@ } }, "node_modules/hasown": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.3.tgz", - "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", "dev": true, + "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, @@ -1184,42 +1068,48 @@ "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "dev": true, + "license": "MIT", "bin": { "he": "bin/he" } }, "node_modules/html-encoding-sniffer": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz", - "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-7.0.0.tgz", + "integrity": "sha512-UikN5yr7xsCDAq87Or5or0PAlD3HJJOKVzM05az588WnpDJ4Ux7a2A53Qi6gofGg2/EtvF/H4hCi/TXfCW4Y6w==", "dev": true, + "license": "MIT", "dependencies": { - "@exodus/bytes": "^1.6.0" + "@exodus/bytes": "^1.15.1" }, "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + "node": "^22.13.0 || >=24.0.0" } }, "node_modules/html-to-text": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/html-to-text/-/html-to-text-9.0.5.tgz", - "integrity": "sha512-qY60FjREgVZL03vJU6IfMV4GDjGBIoOyvuFdpBDIX9yTlDw0TjxVBQp+P8NvpdIXNJvfWBTNul7fsAQJq2FNpg==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/html-to-text/-/html-to-text-10.0.1.tgz", + "integrity": "sha512-GiVhRI1BatGARSCmlXWNCjDT0cWrwBWoeduLoV0WSKAgaV/wa+hUWy5LiQLUs4UwiUrE52ZCMfBGiKD87TDPrg==", "dev": true, + "license": "MIT", "dependencies": { - "@selderee/plugin-htmlparser2": "^0.11.0", - "deepmerge": "^4.3.1", + "@selderee/plugin-htmlparser2": "~0.12.0", + "deepmerge-ts": "^8.0.1", "dom-serializer": "^2.0.0", - "htmlparser2": "^8.0.2", - "selderee": "^0.11.0" + "htmlparser2": "^10.1.0", + "selderee": "~0.12.0" }, "engines": { - "node": ">=14" + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/KillyMXI" } }, "node_modules/htmlparser2": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-8.0.2.tgz", - "integrity": "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.1.0.tgz", + "integrity": "sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==", "dev": true, "funding": [ "https://github.com/fb55/htmlparser2?sponsor=1", @@ -1228,11 +1118,25 @@ "url": "https://github.com/sponsors/fb55" } ], + "license": "MIT", "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", - "domutils": "^3.0.1", - "entities": "^4.4.0" + "domutils": "^3.2.2", + "entities": "^7.0.1" + } + }, + "node_modules/htmlparser2/node_modules/entities": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" } }, "node_modules/http-errors": { @@ -1240,6 +1144,7 @@ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", "dev": true, + "license": "MIT", "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", @@ -1260,6 +1165,7 @@ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "dev": true, + "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -1271,13 +1177,15 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.10" } @@ -1286,19 +1194,59 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/ipv6-normalize/-/ipv6-normalize-1.0.1.tgz", "integrity": "sha512-Bm6H79i01DjgGTCWjUuCjJ6QDo1HB96PT/xCYuyJUP9WFbVDrLSbG4EZCvOCun2rNswZb0c3e4Jt/ws795esHA==", - "dev": true + "dev": true, + "license": "MIT" + }, + "node_modules/is-alphabetical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", + "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-alphanumerical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz", + "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-alphabetical": "^2.0.0", + "is-decimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-decimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz", + "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } }, "node_modules/is-potential-custom-element-name": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/is-promise": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/is-property": { "version": "1.0.2", @@ -1306,77 +1254,85 @@ "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==" }, "node_modules/jsdom": { - "version": "29.1.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-29.1.0.tgz", - "integrity": "sha512-YNUc7fB9QuvSSQWfrH0xF+TyABkxUwx8sswgIDaCrw4Hol8BghdZDkITtZheRJeMtzWlnTfsM3bBBusRvpO1wg==", - "dev": true, - "dependencies": { - "@asamuzakjp/css-color": "^5.1.11", - "@asamuzakjp/dom-selector": "^7.1.1", - "@bramus/specificity": "^2.4.2", - "@csstools/css-syntax-patches-for-csstree": "^1.1.3", - "@exodus/bytes": "^1.15.0", - "css-tree": "^3.2.1", - "data-urls": "^7.0.0", + "version": "31.0.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-31.0.0.tgz", + "integrity": "sha512-xAkhD9z1eyFC5+QUi9K24CaZJgdCQ2GOGLW1GdVDoQvkp/AxEH9TQ0pAplPOlIiV92hfcgnFOADZypbjgbBT6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@exodus/bytes": "^1.16.0", + "bcp-47": "^2.1.2", + "bcp-47-match": "^2.0.3", + "data-urls": "^8.0.0", "decimal.js": "^10.6.0", - "html-encoding-sniffer": "^6.0.0", + "html-encoding-sniffer": "^7.0.0", "is-potential-custom-element-name": "^1.0.1", - "lru-cache": "^11.3.5", - "parse5": "^8.0.1", + "lru-cache": "^11.5.3", + "parse5": "^8.1.0", + "parse5-parser-stream": "^8.1.0", "saxes": "^6.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^6.0.1", - "undici": "^7.25.0", - "w3c-xmlserializer": "^5.0.0", + "tough-cookie": "^6.0.2", + "undici": "^8.12.3", + "w3c-xmlserializer": "^6.0.0", "webidl-conversions": "^8.0.1", "whatwg-mimetype": "^5.0.0", - "whatwg-url": "^16.0.1", + "whatwg-url": "^17.3.0", "xml-name-validator": "^5.0.0" }, "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24.0.0" + "node": "^22.22.2 || ^24.15.0 || >=26.0.0" }, "peerDependencies": { - "canvas": "^3.0.0" + "@napi-rs/canvas": "^1.0.13" }, "peerDependenciesMeta": { - "canvas": { + "@napi-rs/canvas": { "optional": true } } }, "node_modules/leac": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/leac/-/leac-0.6.0.tgz", - "integrity": "sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/leac/-/leac-0.7.0.tgz", + "integrity": "sha512-qMrZeyEekgdRQ9o6a4NAB2EQZrv827GJdn1vnapwSJ90hWRB4TzUSunvacPkxQ2TnNqHNI1/zSt0hlo0crG8Jw==", "dev": true, + "license": "MIT", "funding": { - "url": "https://ko-fi.com/killymxi" + "url": "https://github.com/sponsors/KillyMXI" } }, "node_modules/libbase64": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/libbase64/-/libbase64-1.3.0.tgz", - "integrity": "sha512-GgOXd0Eo6phYgh0DJtjQ2tO8dc0IVINtZJeARPeiIJqge+HdsWSuaDTe8ztQ7j/cONByDZ3zeB325AHiv5O0dg==", - "dev": true + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/libbase64/-/libbase64-1.4.1.tgz", + "integrity": "sha512-Nyh3H90B3gRtrcxIe56Ayy7635J0jmh6AbxbQgQae8wrSPQMH5wFqJChiMTB13yKG512L3YspbA5DzumhFTITA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.0.0" + } }, "node_modules/libmime": { - "version": "5.3.8", - "resolved": "https://registry.npmjs.org/libmime/-/libmime-5.3.8.tgz", - "integrity": "sha512-ZrCY+Q66mPvasAfjsQ/IgahzoBvfE1VdtGRpo1hwRB1oK3wJKxhKA3GOcd2a6j7AH5eMFccxK9fBoCpRZTf8ng==", + "version": "5.6.4", + "resolved": "https://registry.npmjs.org/libmime/-/libmime-5.6.4.tgz", + "integrity": "sha512-QWiiwq3ujIUSsCCjFDldDN7FfXuLYSTnEln0oeYfOjgqyVlRV6WQ3UyJ/paguoz8Ynxy1s7k3kh6xomS3bJkCw==", "dev": true, + "license": "MIT", "dependencies": { - "encoding-japanese": "2.2.0", - "iconv-lite": "0.7.2", - "libbase64": "1.3.0", - "libqp": "2.1.1" + "encoding-japanese": "2.5.0", + "iconv-lite": "0.7.3", + "libbase64": "1.4.1", + "libqp": "3.0.1" + }, + "engines": { + "node": ">=20.0.0" } }, "node_modules/libmime/node_modules/iconv-lite": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", - "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==", + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", + "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", "dev": true, + "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -1389,16 +1345,31 @@ } }, "node_modules/libqp": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/libqp/-/libqp-2.1.1.tgz", - "integrity": "sha512-0Wd+GPz1O134cP62YU2GTOPNA7Qgl09XwCqM5zpBv87ERCXdfDtyKXvV7c9U22yWJh44QZqBocFnXN11K96qow==", - "dev": true + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/libqp/-/libqp-3.0.1.tgz", + "integrity": "sha512-7QZxpPX25pga1WiMueduWxmrHMVBFrZPH6ZUaozGYa/H98JH6NVBSET3qVw+4NxzoraIW7rJ81YxSU9IalvCpg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.0.0" + } }, "node_modules/linkify-it": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", - "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.2.tgz", + "integrity": "sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/markdown-it" + } + ], + "license": "MIT", "dependencies": { "uc.micro": "^2.0.0" } @@ -1409,10 +1380,11 @@ "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==" }, "node_modules/lru-cache": { - "version": "11.5.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.0.tgz", - "integrity": "sha512-5YgH9UJd7wVb9hIouI2adWpgqrrICkt070Dnj8EUY1+B4B2P9eRLPAkAAo6NICA7CEhOIeBHl46u9zSNpNu7zA==", + "version": "11.5.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz", + "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", "dev": true, + "license": "BlueOak-1.0.0", "engines": { "node": "20 || >=22" } @@ -1433,75 +1405,53 @@ }, "node_modules/maildev": { "name": "@timshel_npm/maildev", - "version": "3.2.19", - "resolved": "https://registry.npmjs.org/@timshel_npm/maildev/-/maildev-3.2.19.tgz", - "integrity": "sha512-A/f07Fe7hCFy/2cUo0xg2r349RvOAHi4TuqOlZXxPuWShWbiSbvYcWr5wDz7G8aV5RyggNP0m+yB/lwmYx5OQg==", + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/@timshel_npm/maildev/-/maildev-3.3.8.tgz", + "integrity": "sha512-4DxdQ8WPei/gisfL3qLVTJ9SThJAEXvN78zPxX/kNsVYw7cOUkQVVWgGScf9cCSAtolHBRkAprXXrm2Z6g3k+Q==", "dev": true, + "license": "MIT", "dependencies": { - "@types/mailparser": "3.4.6", + "@types/mailparser": "3.9.0", "addressparser": "1.0.1", "async": "3.2.6", - "commander": "14.0.3", - "compression": "1.8.1", + "commander": "15.1.0", + "compression": "1.8.2", "cors": "2.8.6", - "dompurify": "3.4.1", - "express": "5.2.1", - "jsdom": "29.1.0", - "mailparser": "3.9.8", - "mime": "4.1.0", - "nodemailer": "8.0.7", - "smtp-server": "3.18.4", - "socket.io": "4.8.3", + "dompurify": "3.4.17", + "express": "5.3.0", + "jsdom": "31.0.0", + "mailparser": "3.14.3", + "mime": "4.1.2", + "nodemailer": "10.5.0", + "smtp-server": "3.21.4", + "socket.io": "4.8.4", "wildstring": "1.0.9" }, "bin": { "maildev": "bin/maildev" }, "engines": { - "node": ">=20.0.0" + "node": ">=22.0.0" } }, "node_modules/mailparser": { - "version": "3.9.8", - "resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.9.8.tgz", - "integrity": "sha512-7jSlFGXiianVnhnb6wdutJFloD34488nrHY7r6FNqwXAhZ7YiJDYrKKTxZJ0oSrXcAPHm8YoYnh97xyGtrBQ3w==", + "version": "3.14.3", + "resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.14.3.tgz", + "integrity": "sha512-GFaKR2tMTDALRM9PQ3DkfOmWeLaRerjifEhCdUb4mM2+VtO+jZFhPMvQivvM/Df/51qYmH7msrreeQmdWjM2kw==", "dev": true, + "license": "MIT", "dependencies": { - "@zone-eu/mailsplit": "5.4.8", - "encoding-japanese": "2.2.0", + "@zone-eu/mailsplit": "5.4.30", "he": "1.2.0", - "html-to-text": "9.0.5", - "iconv-lite": "0.7.2", - "libmime": "5.3.8", - "linkify-it": "5.0.0", - "nodemailer": "8.0.5", + "html-to-text": "10.0.1", + "libmime": "5.6.4", + "linkify-it": "5.0.2", + "nodemailer": "10.5.0", "punycode.js": "2.3.1", "tlds": "1.261.0" - } - }, - "node_modules/mailparser/node_modules/iconv-lite": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", - "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" }, "engines": { - "node": ">=0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/mailparser/node_modules/nodemailer": { - "version": "8.0.5", - "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.5.tgz", - "integrity": "sha512-0PF8Yb1yZuQfQbq+5/pZJrtF6WQcjTd5/S4JOHs9PGFxuTqoB/icwuB44pOdURHJbRKX1PPoJZtY7R4VUoCC8w==", - "dev": true, - "engines": { - "node": ">=6.0.0" + "node": ">=20.0.0" } }, "node_modules/math-intrinsics": { @@ -1509,23 +1459,23 @@ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" } }, - "node_modules/mdn-data": { - "version": "2.27.1", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", - "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", - "dev": true - }, "node_modules/media-typer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", - "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz", + "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/merge-descriptors": { @@ -1533,6 +1483,7 @@ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", "dev": true, + "license": "MIT", "engines": { "node": ">=18" }, @@ -1541,13 +1492,14 @@ } }, "node_modules/mime": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-4.1.0.tgz", - "integrity": "sha512-X5ju04+cAzsojXKes0B/S4tcYtFAJ6tTMuSPBEn9CPGlrWr8Fiw7qYeLT0XyH80HSoAoqWCaz+MWKh22P7G1cw==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/mime/-/mime-4.1.2.tgz", + "integrity": "sha512-ikRzZ2RwbUVDyL9SsU0f2Phcmav4yq5r8faH5ZZKHtOZrMBLnrQOrj0uvqZ5R1uQnj+RO7Wcklw/lAf81mP9LQ==", "dev": true, "funding": [ "https://github.com/sponsors/broofa" ], + "license": "MIT", "bin": { "mime": "bin/cli.js" }, @@ -1560,6 +1512,7 @@ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -1569,6 +1522,7 @@ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", "dev": true, + "license": "MIT", "dependencies": { "mime-db": "^1.54.0" }, @@ -1584,21 +1538,22 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/mysql2": { - "version": "3.22.3", - "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.22.3.tgz", - "integrity": "sha512-uWWxvZSRvRhtBdh2CdcuK83YcOfPdmEeEYB069bAmPnV93QApDGVPuvCQOLjlh7tYHEWdgQPrn6kosDxHBVLkA==", + "version": "3.24.6", + "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.24.6.tgz", + "integrity": "sha512-enu73KhbAua2L3dIxjc6qg6ZJ7H3pt1BImZASWNWY5xSsmJ1ZuUPULTDGXgmJbI61vb+nJAG19IZclIq19UidQ==", + "license": "MIT", "dependencies": { "aws-ssl-profiles": "^1.1.2", - "denque": "^2.1.0", "generate-function": "^2.3.1", - "iconv-lite": "^0.7.2", + "iconv-lite": "^0.7.3", "long": "^5.3.2", "lru.min": "^1.1.4", "named-placeholders": "^1.1.6", - "sql-escaper": "^1.3.3" + "sql-escaper": "^1.5.1" }, "engines": { "node": ">= 8.0" @@ -1608,9 +1563,10 @@ } }, "node_modules/mysql2/node_modules/iconv-lite": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", - "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==", + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", + "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", + "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -1638,17 +1594,19 @@ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz", "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/nodemailer": { - "version": "8.0.7", - "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.7.tgz", - "integrity": "sha512-pkjE4mkBzQjdJT4/UmlKl3pX0rC9fZmjh7c6C9o7lv66Ac6w9WCnzPzhbPNxwZAzlF4mdq4CSWB5+FbK6FWCow==", + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-10.5.0.tgz", + "integrity": "sha512-L/w/HH5MqpzMDuZD7fQdt/+KqymuvrpaApaIjAH2XA3ILePwlcvXCVVvP75xVrXCEt2ggK2marrrHHFB5Qu0kA==", "dev": true, + "license": "MIT-0", "engines": { - "node": ">=6.0.0" + "node": ">=20.0.0" } }, "node_modules/object-assign": { @@ -1656,6 +1614,7 @@ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1665,6 +1624,7 @@ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -1673,15 +1633,20 @@ } }, "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.2.tgz", + "integrity": "sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ==", "dev": true, + "license": "MIT", "dependencies": { "ee-first": "1.1.1" }, "engines": { "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/on-headers": { @@ -1689,6 +1654,7 @@ "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.1.0.tgz", "integrity": "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -1698,38 +1664,55 @@ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, + "license": "ISC", "dependencies": { "wrappy": "1" } }, "node_modules/otpauth": { - "version": "9.5.1", - "resolved": "https://registry.npmjs.org/otpauth/-/otpauth-9.5.1.tgz", - "integrity": "sha512-fJmDAHc8wImfqqqOXIlBvT1dEKrZK0Cmb2VEgScpNTolCz0PHh6ExUZGv4sLtOsWNaHCQlD+rRqaPgnoxFoZjQ==", + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/otpauth/-/otpauth-9.6.0.tgz", + "integrity": "sha512-qQXHTxcXohDhQjF1ZEbUVEpTIssFL2rd+2kHfw/McIVCbTLD6qAsbTCQxpXRLyeyUw6Ipjpykw4dWZL/zfIVqA==", + "license": "MIT", "dependencies": { - "@noble/hashes": "2.2.0" + "@noble/hashes": "2.4.0" }, "funding": { "url": "https://github.com/hectorm/otpauth?sponsor=1" } }, "node_modules/parse5": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz", - "integrity": "sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.1.1.tgz", + "integrity": "sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==", "dev": true, + "license": "MIT", "dependencies": { - "entities": "^8.0.0" + "entities": "^9.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5-parser-stream": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/parse5-parser-stream/-/parse5-parser-stream-8.1.1.tgz", + "integrity": "sha512-hMcVbbUJcQmP8rURWUdYrT1flRiBiBVjq/RYGguJpDUgIXSqdYKlE0CxthmdMWoSlBAuL5bUBa73g0pttSy7Hw==", + "dev": true, + "license": "MIT", + "dependencies": { + "parse5": "^8.1.1" }, "funding": { "url": "https://github.com/inikulin/parse5?sponsor=1" } }, "node_modules/parse5/node_modules/entities": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-8.0.0.tgz", - "integrity": "sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-9.0.0.tgz", + "integrity": "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=20.19.0" }, @@ -1738,16 +1721,17 @@ } }, "node_modules/parseley": { - "version": "0.12.1", - "resolved": "https://registry.npmjs.org/parseley/-/parseley-0.12.1.tgz", - "integrity": "sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw==", + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/parseley/-/parseley-0.13.1.tgz", + "integrity": "sha512-uNBJZzmb60l6p6VWLTmevizNAGnE0xoSf1n0B4q3ntegDNzcS68NRCcBDZTcyXHxt2XhBChsCuqj4M+nChvE/A==", "dev": true, + "license": "MIT", "dependencies": { - "leac": "^0.6.0", - "peberminta": "^0.9.0" + "leac": "^0.7.0", + "peberminta": "^0.10.0" }, "funding": { - "url": "https://ko-fi.com/killymxi" + "url": "https://github.com/sponsors/KillyMXI" } }, "node_modules/parseurl": { @@ -1755,6 +1739,7 @@ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -1764,28 +1749,31 @@ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==", "dev": true, + "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/express" } }, "node_modules/peberminta": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/peberminta/-/peberminta-0.9.0.tgz", - "integrity": "sha512-XIxfHpEuSJbITd1H3EeQwpcZbTLHc+VVr8ANI9t5sit565tsI4/xK3KWTUFE2e6QiangUkh3B0jihzmGnNrRsQ==", + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/peberminta/-/peberminta-0.10.0.tgz", + "integrity": "sha512-80B2AsU+I4Qdb0ZAPSfe9UwvGzwkM37IKIFEvdS3D/3Ndgv2bsuJ0bfG1+iEYO+l7Gfd4EUJmuRyq7efLgRMzQ==", "dev": true, + "license": "MIT", "funding": { - "url": "https://ko-fi.com/killymxi" + "url": "https://github.com/sponsors/KillyMXI" } }, "node_modules/pg": { - "version": "8.21.0", - "resolved": "https://registry.npmjs.org/pg/-/pg-8.21.0.tgz", - "integrity": "sha512-AUP1EYJuHraQGsVoCQVIcM7TEJVGtDzxWtGFZd8rds9d+CCXlU5Js1rYgfLNvxy9iJrpHjGrRjoi/3BT9fRyiA==", + "version": "8.23.1", + "resolved": "https://registry.npmjs.org/pg/-/pg-8.23.1.tgz", + "integrity": "sha512-aL96AHANtWjPLDOLqnhx+ngp9+UK7ETEU8VJrDCGvsSSi/mGLcWYsS6Herg7lmaBJe4uwrfqsa7gTEFaSizDoQ==", + "license": "MIT", "dependencies": { - "pg-connection-string": "^2.13.0", + "pg-connection-string": "^2.14.1", "pg-pool": "^3.14.0", - "pg-protocol": "^1.14.0", + "pg-protocol": "^1.16.1", "pg-types": "2.2.0", "pgpass": "1.0.5" }, @@ -1793,7 +1781,7 @@ "node": ">= 16.0.0" }, "optionalDependencies": { - "pg-cloudflare": "^1.4.0" + "pg-cloudflare": "^1.4.1" }, "peerDependencies": { "pg-native": ">=3.0.1" @@ -1805,15 +1793,17 @@ } }, "node_modules/pg-cloudflare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.4.0.tgz", - "integrity": "sha512-Vo7z/6rrQYxpNRylp4Tlob2elzbh+N/MOQbxFVWCxS7oEx6jF53GTJFxK2WWpKuBRkmiin4Mt+xofFDjx09R0A==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.4.1.tgz", + "integrity": "sha512-6PQbsFWZcp9EmJEwy5cGQ2La+AMWpP46lgbb8X+U/XsHIUweYDNCpeuKck5RxL2MdVFi7krbbEi5nX4Zh7JhrQ==", + "license": "MIT", "optional": true }, "node_modules/pg-connection-string": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.13.0.tgz", - "integrity": "sha512-EMnU9E2fSULdsbErBbMaXJvFeD9B4+nPcM3f+4lsiCR0BHLPrLVjv3DbyM2hgQQviKJaTWIRRTjKjWlHg3p2ig==" + "version": "2.14.1", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.14.1.tgz", + "integrity": "sha512-qR3kGNPBLpCNtz0evbKA0Y/MRFXwSSdT+pTJvYp/bXTcReZbvX1kzF0IyTc1QnxqF7AZbOeBhNL8R5mYQZV/MA==", + "license": "MIT" }, "node_modules/pg-int8": { "version": "1.0.1", @@ -1832,9 +1822,10 @@ } }, "node_modules/pg-protocol": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.14.0.tgz", - "integrity": "sha512-n5taZ1kO3s9ngDTVxsEznOqCyToTgz0FLuPq0B33COy5pPpuWJpY3/2oRBVETuOgzdqRXfWpM9HIhp2LBBT1BA==" + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.16.1.tgz", + "integrity": "sha512-p9VOFMiHB/ZbJATetbg+99PxssTVSQRnyuPSQ67mN1+1KBOjZaZ83ZQzltnxPhJwSsC3nwVjJ10DVJlerbFzLg==", + "license": "MIT" }, "node_modules/pg-types": { "version": "2.2.0", @@ -1860,33 +1851,32 @@ } }, "node_modules/playwright": { - "version": "1.60.0", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.60.0.tgz", - "integrity": "sha512-hheHdokM8cdqCb0lcE3s+zT4t4W+vvjpGxsZlDnikarzx8tSzMebh3UiFtgqwFwnTnjYQcsyMF8ei2mCO/tpeA==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.65.1.tgz", + "integrity": "sha512-vJ1FuoOrNwOKHUIVEvSt3jT1L+wjjDpwhwIstKtfvTh8XIG4FG4bIFuvNdMxi81LGfAhUgUZleVFaOLY4RIUUw==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.60.0" + "playwright-core": "1.65.1" }, "bin": { "playwright": "cli.js" }, "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "fsevents": "2.3.2" + "node": ">=20" } }, "node_modules/playwright-core": { - "version": "1.60.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.60.0.tgz", - "integrity": "sha512-9bW6zvX/m0lEbgTKJ6YppOKx8H3VOPBMOCFh2irXFOT4BbHgrx5hPjwJYLT40Lu+4qtD36qKc/Hn56StUW57IA==", + "version": "1.65.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.65.1.tgz", + "integrity": "sha512-hqPpz7blSMPxWVdoeE1yiBSzXsKiVOd2k+kjCvmUywD2GPO2Dd9HfcWnq9NN0GHbNZDFgZ9JfBFr+X5/BLo0qw==", "dev": true, + "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" }, "engines": { - "node": ">=18" + "node": ">=20" } }, "node_modules/postgres-array": { @@ -1925,16 +1915,21 @@ } }, "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz", + "integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==", "dev": true, + "license": "MIT", "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" }, "engines": { "node": ">= 0.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/punycode": { @@ -1942,6 +1937,7 @@ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -1951,17 +1947,20 @@ "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/qs": { - "version": "6.15.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.2.tgz", - "integrity": "sha512-Rzq0KEyX/w/tEybncDgdkZrJgVUsUMk3xjh3t5bv3S1HTAtg+uOYt72+ZfwiQwKdysThkTBdL/rTi6HDmX9Ddw==", + "version": "6.17.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.1.tgz", + "integrity": "sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { - "side-channel": "^1.1.0" + "es-define-property": "^1.0.1", + "side-channel": "^1.1.1" }, "engines": { "node": ">=0.6" @@ -1971,12 +1970,17 @@ } }, "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz", + "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/raw-body": { @@ -1984,6 +1988,7 @@ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", "dev": true, + "license": "MIT", "dependencies": { "bytes": "~3.1.2", "http-errors": "~2.0.1", @@ -1995,10 +2000,11 @@ } }, "node_modules/raw-body/node_modules/iconv-lite": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", - "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==", + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", + "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", "dev": true, + "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -2010,20 +2016,12 @@ "url": "https://opencollective.com/express" } }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/router": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^4.4.0", "depd": "^2.0.0", @@ -2040,6 +2038,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -2056,7 +2055,8 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/safe-buffer": { "version": "5.2.1", @@ -2076,18 +2076,21 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" }, "node_modules/saxes": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", "dev": true, + "license": "ISC", "dependencies": { "xmlchars": "^2.2.0" }, @@ -2096,15 +2099,16 @@ } }, "node_modules/selderee": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/selderee/-/selderee-0.11.0.tgz", - "integrity": "sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA==", + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/selderee/-/selderee-0.12.0.tgz", + "integrity": "sha512-b1YMh3+DHZp59DLna3qVwQ5iOla/nrI6mLBNW02XxU77M3046Df6VLkoaJyFz20VsGIG5kkp+FK0kg4K4HnUFw==", "dev": true, + "license": "MIT", "dependencies": { - "parseley": "^0.12.0" + "parseley": "~0.13.1" }, "funding": { - "url": "https://ko-fi.com/killymxi" + "url": "https://github.com/sponsors/KillyMXI" } }, "node_modules/send": { @@ -2112,6 +2116,7 @@ "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^4.4.3", "encodeurl": "^2.0.0", @@ -2138,6 +2143,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -2154,13 +2160,15 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/serve-static": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", "dev": true, + "license": "MIT", "dependencies": { "encodeurl": "^2.0.0", "escape-html": "^1.0.3", @@ -2179,17 +2187,19 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", + "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", "dev": true, + "license": "MIT", "dependencies": { "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", + "object-inspect": "^1.13.4", + "side-channel-list": "^1.0.1", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" }, @@ -2205,6 +2215,7 @@ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", "dev": true, + "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.4" @@ -2221,6 +2232,7 @@ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", "dev": true, + "license": "MIT", "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", @@ -2239,6 +2251,7 @@ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", "dev": true, + "license": "MIT", "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", @@ -2254,36 +2267,28 @@ } }, "node_modules/smtp-server": { - "version": "3.18.4", - "resolved": "https://registry.npmjs.org/smtp-server/-/smtp-server-3.18.4.tgz", - "integrity": "sha512-9EnXPG4Tv+2P/TSEUdFTduYn9IxtxNRsOq/ryVj8ZlT+6MU2um9gn2Td2hHlgH1n+saagMWtici3hn5J5PhU+g==", + "version": "3.21.4", + "resolved": "https://registry.npmjs.org/smtp-server/-/smtp-server-3.21.4.tgz", + "integrity": "sha512-FnkLEd4QAsuUJTd7AK6zSDB8y2Fn3T1EXIC0OIUMqYbUmCv4VH9p6opt8afCiEd6x+hxjlh/CUFCSJKMW+Nfyg==", "dev": true, + "license": "MIT-0", "dependencies": { "ipv6-normalize": "1.0.1", - "nodemailer": "8.0.5", + "nodemailer": "10.5.0", "punycode.js": "2.3.1" }, "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/smtp-server/node_modules/nodemailer": { - "version": "8.0.5", - "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.5.tgz", - "integrity": "sha512-0PF8Yb1yZuQfQbq+5/pZJrtF6WQcjTd5/S4JOHs9PGFxuTqoB/icwuB44pOdURHJbRKX1PPoJZtY7R4VUoCC8w==", - "dev": true, - "engines": { - "node": ">=6.0.0" + "node": ">=20.0.0" } }, "node_modules/socket.io": { - "version": "4.8.3", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.8.3.tgz", - "integrity": "sha512-2Dd78bqzzjE6KPkD5fHZmDAKRNe3J15q+YHDrIsy9WEkqttc7GY+kT9OBLSMaPbQaEd0x1BjcmtMtXkfpc+T5A==", + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.8.4.tgz", + "integrity": "sha512-9ZV9zg8vN8hO3Y25DhR7nUkJ1VDnBhq5O/JrXhFT9s6+F0gqytSASTHVfCFc2mJXaTfARroErplXlzFWwETZqQ==", "dev": true, + "license": "MIT", "dependencies": { "accepts": "~1.3.4", - "base64id": "~2.0.0", "cors": "~2.8.5", "debug": "~4.4.1", "engine.io": "~6.6.0", @@ -2295,13 +2300,14 @@ } }, "node_modules/socket.io-adapter": { - "version": "2.5.7", - "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.5.7.tgz", - "integrity": "sha512-e0LyK91f3cUxTmv95/KzoLg47+zF+s/sbxRGDNsyG4dmIP8ZSX8ax6byOxfJXeNNtS/8AZlfD+uP7gBeR7DLlg==", + "version": "2.5.8", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.5.8.tgz", + "integrity": "sha512-6Oy52pbg+kvdCVvjcN+FnY7BvxZ7cIHNScbvztT/It5d0vbwoJoVZmF2gjJmnV0/4WlXRfG15zc45ySk9Ah8bw==", "dev": true, + "license": "MIT", "dependencies": { "debug": "~4.4.1", - "ws": "~8.20.1" + "ws": "~8.21.0" } }, "node_modules/socket.io-adapter/node_modules/debug": { @@ -2309,6 +2315,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -2325,13 +2332,15 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/socket.io-parser": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.6.tgz", - "integrity": "sha512-asJqbVBDsBCJx0pTqw3WfesSY0iRX+2xzWEWzrpcH7L6fLzrhyF8WPI8UaeM4YCuDfpwA/cgsdugMsmtz8EJeg==", + "version": "4.2.7", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.7.tgz", + "integrity": "sha512-IH/iSeO9T6gz1KkFleGDWkG9N3dl4jXVYUtMhIqH10Md0ttMer8nUNWiP1DKuNrybD2xBrixLJdCC9J6ECoYkg==", "dev": true, + "license": "MIT", "dependencies": { "@socket.io/component-emitter": "~3.1.0", "debug": "~4.4.1" @@ -2345,6 +2354,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -2361,13 +2371,15 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/socket.io/node_modules/accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", "dev": true, + "license": "MIT", "dependencies": { "mime-types": "~2.1.34", "negotiator": "0.6.3" @@ -2381,6 +2393,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -2398,6 +2411,7 @@ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -2407,6 +2421,7 @@ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, + "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, @@ -2418,26 +2433,19 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/socket.io/node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/split2": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", @@ -2447,9 +2455,10 @@ } }, "node_modules/sql-escaper": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/sql-escaper/-/sql-escaper-1.3.3.tgz", - "integrity": "sha512-BsTCV265VpTp8tm1wyIm1xqQCS+Q9NHx2Sr+WcnUrgLrQ6yiDIvHYJV5gHxsj1lMBy2zm5twLaZao8Jd+S8JJw==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/sql-escaper/-/sql-escaper-1.7.0.tgz", + "integrity": "sha512-ZgP6E9SPnhrhWXxd8+nLKPot3Euzyo3Rpxe6EFAYz2Ffaq9Xg2SH+6d4yJi7vsQDHaQlhzQ1phAopgE6+a1UCQ==", + "license": "MIT", "engines": { "bun": ">=1.0.0", "deno": ">=2.0.0", @@ -2465,57 +2474,57 @@ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, "node_modules/tlds": { "version": "1.261.0", "resolved": "https://registry.npmjs.org/tlds/-/tlds-1.261.0.tgz", "integrity": "sha512-QXqwfEl9ddlGBaRFXIvNKK6OhipSiLXuRuLJX5DErz0o0Q0rYxulWLdFryTkV5PkdZct5iMInwYEGe/eR++1AA==", "dev": true, + "license": "MIT", "bin": { "tlds": "bin.js" } }, "node_modules/tldts": { - "version": "7.0.30", - "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.0.30.tgz", - "integrity": "sha512-ELrFxuqsDdHUwoh0XxDbxuLD3Wnz49Z57IFvTtvWy1hJdcMZjXLIuonjilCiWHlT2GbE4Wlv1wKVTzDFnXH1aw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.5.4.tgz", + "integrity": "sha512-Rn2ABgjHZrA+jzqom5zhxA0hLohzYrIgfCPyhpTUxqsUrcsBYuab49LseR9waB9Jr8/MxdodvMHA91oRiGLO3Q==", "dev": true, + "license": "MIT", "dependencies": { - "tldts-core": "^7.0.30" + "tldts-core": "^7.5.4" }, "bin": { "tldts": "bin/cli.js" } }, "node_modules/tldts-core": { - "version": "7.0.30", - "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.0.30.tgz", - "integrity": "sha512-uiHN8PIB1VmWyS98eZYja4xzlYqeFZVjb4OuYlJQnZAuJhMw4PbKQOKgHKhBdJR3FE/t5mUQ1Kd80++B+qhD1Q==", - "dev": true + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.5.4.tgz", + "integrity": "sha512-9+4zWtKEDZ3V3FoZ1B97rv+5z5oqp7yeXGVze3CxgQ+CJro9do9DCPD00wxstYZDXDMXsurkBerFfiB6GYtPbA==", + "dev": true, + "license": "MIT" }, "node_modules/toidentifier": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.6" } }, "node_modules/tough-cookie": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.1.tgz", - "integrity": "sha512-LktZQb3IeoUWB9lqR5EWTHgW/VTITCXg4D21M+lvybRVdylLrRMnqaIONLVb5mav8vM19m44HIcGq4qASeu2Qw==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.1.0.tgz", + "integrity": "sha512-FTxc8u8Kl2tz0Lat1u8ksvcy8bwHRyEMawwTWybo51JqaC6O7SvfuhAKg+Ld6VqyIe2QRJBzY9HA7y2WyFRT2w==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "tldts": "^7.0.5" }, @@ -2524,15 +2533,16 @@ } }, "node_modules/tr46": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz", - "integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-7.0.0.tgz", + "integrity": "sha512-BcDSDW+SIGWVOns1Zm6Yg91q9AEj7eaID0QDY9oIqJD1A8dscNwMcl9Sms2DeuWCNov1X0/oXanHGYQBSLwZsg==", "dev": true, + "license": "MIT", "dependencies": { "punycode": "^2.3.1" }, "engines": { - "node": ">=20" + "node": "^22.14.0 || >=24.0.0" } }, "node_modules/type-is": { @@ -2540,6 +2550,7 @@ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz", "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==", "dev": true, + "license": "MIT", "dependencies": { "content-type": "^2.0.0", "media-typer": "^1.1.0", @@ -2553,32 +2564,21 @@ "url": "https://opencollective.com/express" } }, - "node_modules/type-is/node_modules/content-type": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.0.0.tgz", - "integrity": "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==", - "dev": true, - "engines": { - "node": ">=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, "node_modules/uc.micro": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/undici": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-7.25.0.tgz", - "integrity": "sha512-xXnp4kTyor2Zq+J1FfPI6Eq3ew5h6Vl0F/8d9XU5zZQf1tX9s2Su1/3PiMmUANFULpmksxkClamIZcaUqryHsQ==", + "version": "8.12.4", + "resolved": "https://registry.npmjs.org/undici/-/undici-8.12.4.tgz", + "integrity": "sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA==", "dev": true, + "license": "MIT", "engines": { - "node": ">=20.18.1" + "node": ">=22.19.0" } }, "node_modules/undici-types": { @@ -2591,6 +2591,7 @@ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } @@ -2600,20 +2601,22 @@ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8" } }, "node_modules/w3c-xmlserializer": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz", - "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-6.0.0.tgz", + "integrity": "sha512-4Nsy8K5Tr6SPDH9jhKJOHf7ChDrc1zufZTVSF7x72hwuEXBqxqk9G6cK+K2NRUtB3iELRJqjXb4JPDMBjMTl2Q==", "dev": true, + "license": "MIT", "dependencies": { "xml-name-validator": "^5.0.0" }, "engines": { - "node": ">=18" + "node": "^22.22.2 || ^24.15.0 || >=26.0.0" } }, "node_modules/webidl-conversions": { @@ -2621,6 +2624,7 @@ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz", "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=20" } @@ -2630,22 +2634,24 @@ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz", "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==", "dev": true, + "license": "MIT", "engines": { "node": ">=20" } }, "node_modules/whatwg-url": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-16.0.1.tgz", - "integrity": "sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==", + "version": "17.3.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-17.3.0.tgz", + "integrity": "sha512-KwOAJrpf+GTgBvcBQJcP38sMF0DsQKdwtG+TxM2pW44P6E5k0hDbWrDmyuJDIF0Uef0aQq0ZoJs+5oI+k8ddhg==", "dev": true, + "license": "MIT", "dependencies": { - "@exodus/bytes": "^1.11.0", - "tr46": "^6.0.0", + "@exodus/bytes": "^1.16.0", + "tr46": "^7.0.0", "webidl-conversions": "^8.0.1" }, "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + "node": "^22.14.0 || >=24.0.0" } }, "node_modules/wildstring": { @@ -2658,13 +2664,15 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/ws": { - "version": "8.20.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.1.tgz", - "integrity": "sha512-It4dO0K5v//JtTXuPkfEOaI3uUN87iYPnqo/ZzqCoG3g8uhA66QUMs/SrM0YK7/NAu+r4LMh/9dq2A7k+rHs+w==", + "version": "8.21.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz", + "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==", "dev": true, + "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -2686,6 +2694,7 @@ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=18" } @@ -2694,7 +2703,8 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/xtend": { "version": "4.0.2", diff --git a/playwright/package.json b/playwright/package.json index a7a35734..5504abc3 100644 --- a/playwright/package.json +++ b/playwright/package.json @@ -8,14 +8,14 @@ "author": "", "license": "ISC", "devDependencies": { - "@playwright/test": "1.60.0", + "@playwright/test": "1.65.1", "dotenv": "17.4.2", "dotenv-expand": "13.0.0", - "maildev": "npm:@timshel_npm/maildev@3.2.19" + "maildev": "npm:@timshel_npm/maildev@3.3.8" }, "dependencies": { - "mysql2": "3.22.3", - "otpauth": "9.5.1", - "pg": "8.21.0" + "mysql2": "3.24.6", + "otpauth": "9.6.0", + "pg": "8.23.1" } } diff --git a/playwright/playwright.config.ts b/playwright/playwright.config.ts index ba5885d9..2cfc9908 100644 --- a/playwright/playwright.config.ts +++ b/playwright/playwright.config.ts @@ -26,14 +26,15 @@ export default defineConfig({ * But short action/nav/expect timeouts to fail on specific step (raise locally if not enough). */ timeout: 240 * 1000, - actionTimeout: 40 * 1000, - navigationTimeout: 40 * 1000, expect: { timeout: 40 * 1000 }, "permissions": ["clipboard-read"], /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { + actionTimeout: 40 * 1000, + navigationTimeout: 40 * 1000, + /* Base URL to use in actions like `await page.goto('/')`. */ baseURL: process.env.DOMAIN, browserName: 'firefox', diff --git a/playwright/tests/collection.spec.ts b/playwright/tests/collection.spec.ts index 867386a5..f1389e19 100644 --- a/playwright/tests/collection.spec.ts +++ b/playwright/tests/collection.spec.ts @@ -21,7 +21,7 @@ test('Create', async ({ page }) => { await orgs.create(test, page, 'New organisation'); await test.step('Create Collection', async () => { - await page.getByRole('button', { name: 'New', exact: true }).click(); + await page.getByRole('button', { name: /^(New|Add)$/ }).click(); await page.getByRole('menuitem', { name: 'Collection' }).click(); await page.getByRole('textbox', { name: 'Name * (required)', exact: true }).fill('RandomCollec'); await page.getByRole('button', { name: 'Save' }).click(); diff --git a/playwright/tests/cyphers.spec.ts b/playwright/tests/cyphers.spec.ts index 679874de..7b54d5ad 100644 --- a/playwright/tests/cyphers.spec.ts +++ b/playwright/tests/cyphers.spec.ts @@ -24,12 +24,16 @@ test('Change Key settings', async ({ page }) => { await page.getByRole('link', { name: 'Security' }).click(); await page.getByRole('link', { name: 'Keys' }).click(); + // V2 accounts (pm-27278-v2-password-registration) register with Argon2id, V1 ones with PBKDF2 + await page.locator('.ng-arrow-wrapper').click(); + await page.getByRole('option', { name: 'PBKDF2 SHA-256' }).click(); + await page.getByRole('spinbutton', { name: 'KDF iterations * (required)'}).fill('700000'); await page.getByRole('button', { name: 'Update encryption settings' }).click(); await page.getByRole('textbox', { name: 'Master password * (required)' }).fill(users.user1.password); await page.getByRole('button', { name: 'Update settings' }).click(); - await page.getByRole('heading', { name: 'Log in' }).click(); + await kdfChanged(test, page); }); await logUser(test, page, users.user1); @@ -49,8 +53,21 @@ test('Change Key settings', async ({ page }) => { await page.getByRole('button', { name: 'Update encryption settings' }).click(); await page.getByRole('textbox', { name: 'Master password * (required)' }).fill(users.user1.password); await page.getByRole('button', { name: 'Update settings' }).click(); - await page.getByRole('heading', { name: 'Log in' }).click(); + await kdfChanged(test, page); }); await logUser(test, page, users.user1); }); + +// Before web vault 2026.10 a KDF change logged the user out, with "Please log back in." in the toast. +async function kdfChanged(test, page: Page) { + const toast = page.locator('bit-toast', { hasText: 'Encryption key settings changed' }); + await expect(toast).toBeVisible(); + const loggedOut = await toast.filter({ hasText: 'Please log back in' }).count() > 0; + await utils.checkNotification(page, 'Encryption key settings changed'); + if (loggedOut) { + await expect(page.getByRole('heading', { name: 'Log in' })).toBeVisible(); + } else { + await utils.logout(test, page, users.user1); + } +} diff --git a/playwright/tests/organization.smtp.spec.ts b/playwright/tests/organization.smtp.spec.ts index f45b2f52..790b0347 100644 --- a/playwright/tests/organization.smtp.spec.ts +++ b/playwright/tests/organization.smtp.spec.ts @@ -47,14 +47,14 @@ test('Invite users', async ({ page }) => { // Account recovery requires the Single organisation policy (ENFORCE_SINGLE_ORG_WITH_RESET_PW_POLICY) await test.step(`Set single organisation`, async () => { await page.getByRole('button', { name: 'Single organisation' }).click(); - await page.getByRole('checkbox', { name: 'Turn on' }).or(page.getByRole('switch', { name: 'Enable policy' })).check({ force: true }); + await orgs.enablePolicy(page); await page.getByRole('button', { name: 'Save' }).click(); await utils.checkNotification(page, 'Edited policy Single organisation'); }); await test.step(`Set account recovery`, async () => { await page.getByRole('button', { name: 'Account recovery' }).click(); - await page.getByRole('checkbox', { name: 'Turn on' }).check(); + await orgs.enablePolicy(page); await page.getByRole('checkbox', { name: 'Automatically enroll new' }).check(); await page.getByRole('button', { name: 'Save' }).click(); await utils.checkNotification(page, 'Edited policy Account recovery'); diff --git a/playwright/tests/secrets.spec.ts b/playwright/tests/secrets.spec.ts index e229d400..c6036e04 100644 --- a/playwright/tests/secrets.spec.ts +++ b/playwright/tests/secrets.spec.ts @@ -26,7 +26,7 @@ test('Password', async ({ context, page }, testInfo: TestInfo) => { await logUser(test, page, users.user1); await test.step('Create password entry', async () => { - await page.getByRole('button', { name: 'New item' }).click(); + await page.getByRole('button', { name: /^(New|Add) item$/ }).click(); await page.getByRole('textbox', { name: 'Item name * (required)' }).fill(label); await page.getByRole('textbox', { name: 'Username' }).fill(users.user1.name); await page.getByRole('textbox', { name: 'Password' }).fill(users.user1.password); @@ -71,7 +71,7 @@ test('SSH Key', async ({ context, page }, testInfo: TestInfo) => { await logUser(test, page, users.user1); const privateKey = await test.step('Create key entry', async () => { - await page.getByRole('button', { name: 'New', exact: true }).click(); + await page.getByRole('button', { name: /^(New|Add)$/ }).click(); await page.getByRole('menuitem', { name: 'SSH key' }).click(); await page.getByRole('textbox', { name: 'Item name * (required)' }).fill('Test SSH key'); await page.getByRole('button', { name: 'Save' }).click(); diff --git a/playwright/tests/send.spec.ts b/playwright/tests/send.spec.ts index ddb8009d..216bf001 100644 --- a/playwright/tests/send.spec.ts +++ b/playwright/tests/send.spec.ts @@ -21,7 +21,7 @@ test('Send', async ({ browser, page }) => { await page.getByRole('link', { name: 'Send' }).click(); await expect(page.locator('#main-content').getByText('Send', { exact: true })).toBeVisible(); - await page.getByRole('button', { name: 'New Send', exact: true }).click(); + await page.getByRole('button', { name: /^(New|Create) Send$/ }).click(); await page.getByRole('menuitem', { name: 'Text' }).click(); await page.getByRole('textbox', { name: 'Send name * (required)' }).fill('Test'); @@ -46,7 +46,7 @@ test('Send', async ({ browser, page }) => { await page.getByRole('link', { name: 'Send' }).click(); await expect(page.locator('#main-content').getByText('Send', { exact: true })).toBeVisible(); - await page.getByRole('button', { name: 'New' }).click(); + await page.getByRole('button', { name: /\b(New|Create)$/ }).click(); await page.getByRole('menuitem', { name: 'Text' }).click(); await page.getByRole('textbox', { name: 'Send name * (required)' }).fill('Password'); diff --git a/playwright/tests/setups/orgs.ts b/playwright/tests/setups/orgs.ts index ce12c50e..e4888dba 100644 --- a/playwright/tests/setups/orgs.ts +++ b/playwright/tests/setups/orgs.ts @@ -29,6 +29,11 @@ export async function policies(test, page: Page, name: string) { }); } +// Web vault 2026.10 replaced the "Turn on" checkbox with an "Enable policy" switch, whose thumb covers the input. +export async function enablePolicy(page: Page) { + await page.getByRole('checkbox', { name: 'Turn on' }).or(page.getByRole('switch', { name: 'Enable policy' })).check({ force: true }); +} + export async function members(test, page: Page, name: string) { await test.step(`Navigate to ${name} members`, async () => { await page.locator('a').filter({ hasText: 'Admin Console' }).first().click(); @@ -46,13 +51,19 @@ export async function invite(test, page: Page, name: string, email: string) { await expect(page.getByRole('heading', { name: 'Members' })).toBeVisible(); await page.getByRole('button', { name: 'Invite member' }).click(); await page.getByRole('textbox', { name: 'Email * (required)', exact: true }).fill(email); - await page.getByRole('tab', { name: 'Collections' }).click(); - await page.getByRole('combobox', { name: 'Permission' }).click(); + // Web vault 2026.10 moved collections from a tab into "More settings" and renamed Save to Invite. + const moreSettings = page.getByRole('button', { name: 'More settings' }); + if (await moreSettings.count() > 0) { + await moreSettings.click(); + } else { + await page.getByRole('tab', { name: 'Collections' }).click(); + } + await page.getByTestId('permission').getByRole('combobox').click(); await page.getByText('Edit items', { exact: true }).click(); - await page.getByRole('combobox', { name: 'Select collections' }).click(); + await page.getByRole('combobox', { name: /^(Select collections|Collections)/ }).click(); await page.getByLabel('Options List').getByText('Default collection').click(); await page.getByRole('columnheader', { name: 'Collection', exact: true }).click(); - await page.getByRole('button', { name: 'Save' }).click(); + await page.getByRole('button', { name: /^(Save|Invite)$/ }).click(); await utils.checkNotification(page, 'User(s) invited'); }); } diff --git a/playwright/tests/sso_organization.spec.ts b/playwright/tests/sso_organization.spec.ts index ee7e28f6..04fb26fc 100644 --- a/playwright/tests/sso_organization.spec.ts +++ b/playwright/tests/sso_organization.spec.ts @@ -55,9 +55,9 @@ test('Activate password policy', async ({ page }) => { await test.step(`Set master password policy`, async () => { await page.getByRole('button', { name: 'Master password requirements' }).click(); - await page.getByRole('checkbox', { name: 'Turn on' }).check(); + await orgs.enablePolicy(page); await page.getByRole('checkbox', { name: 'Require existing members to' }).check(); - await page.getByRole('spinbutton', { name: 'Minimum length' }).fill('42'); + await page.getByRole('spinbutton', { name: /^Minimum (character )?length/ }).fill('42'); await page.getByRole('button', { name: 'Save' }).click(); await utils.checkNotification(page, 'Edited policy Master password requirements.'); }); From dbd7829ed140ae3458abc97dedec9a4421ddff42 Mon Sep 17 00:00:00 2001 From: Mathijs van Veluw Date: Tue, 24 Nov 2026 13:28:59 +0100 Subject: [PATCH 12/12] Misc updates and fixes (#8006) --- .env.template | 5 + Cargo.lock | 197 ++++++++++++++++++---------- Cargo.toml | 8 +- src/api/admin.rs | 4 +- src/api/core/two_factor/webauthn.rs | 18 ++- src/config.rs | 3 + 6 files changed, 153 insertions(+), 82 deletions(-) diff --git a/.env.template b/.env.template index 501df3e2..c4360ccb 100644 --- a/.env.template +++ b/.env.template @@ -648,6 +648,11 @@ ## Keep in mind that when a server drifts out of time, valid codes could be marked as invalid. ## In any case, if a code has been used it can not be used again, also codes which predates it will be invalid. # AUTHENTICATOR_DISABLE_TIME_DRIFT=false +## +## WebAuthn Settings +## Enable WebAuthn 2FA prefer user verification +## Sets user verification to preferred instead of discouraged, improving compatibility with some security keys. +WEBAUTHN_2FA_PREFER_USER_VERIFICATION=false ########################### ### SMTP Email settings ### diff --git a/Cargo.lock b/Cargo.lock index 61c008d8..65a4407a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,11 +10,12 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" [[package]] name = "ahash" -version = "0.8.12" +version = "0.8.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +checksum = "0fca89247609239eeb6915e6991111866b92d7b31025e69302bbf430cc4d2c38" dependencies = [ "cfg-if", + "getrandom 0.4.3", "once_cell", "version_check", "zerocopy", @@ -61,9 +62,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.104" +version = "1.0.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +checksum = "2cb931c189b85683d69a5cfad41d4d418671e1ac413dd209f3f2fc31e3cfd902" [[package]] name = "ar_archive_writer" @@ -159,9 +160,9 @@ dependencies = [ [[package]] name = "async-compression" -version = "0.4.52" +version = "0.4.53" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ad47a740fb906fffdd891e8b6d5fde2511600f7bfaebd68939fa08a14999459" +checksum = "7bde8322bfc31ade96978b8d3c06be0fd60401192e7ddb9a0b2de5e215d22e61" dependencies = [ "compression-codecs", "compression-core", @@ -480,9 +481,9 @@ dependencies = [ [[package]] name = "aws-sdk-sts" -version = "1.127.0" +version = "1.128.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35d50661cd8816b7f23a652391c5b6f3645fce499e62e8fc5b3ed4145c5248f7" +checksum = "29c357588cdf8c9ae96c0d9930fff757f9b678d06b8f68d8e37a1278fe034912" dependencies = [ "arc-swap", "aws-credential-types", @@ -654,9 +655,9 @@ dependencies = [ [[package]] name = "aws-smithy-types" -version = "1.9.4" +version = "1.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aff4bf014c512840b2bba80a20417b723cbd6a0a65c02e2d81f50b4268aedfc7" +checksum = "2085f9721fb3755821f8db7611a67ed15f4d6fdba6785b4db8ed7cd18eebee0f" dependencies = [ "base64-simd", "bytes", @@ -828,9 +829,9 @@ dependencies = [ [[package]] name = "brotli-decompressor" -version = "6.3.2" +version = "6.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc031cd87c6529082b0b65c604e86af0ed7744841b17ccfe60b1e31fa606179e" +checksum = "664148598c930650998ef56df301329ffe7b4cdb02d49b2a3fca3bcaf2185bcb" dependencies = [ "alloc-no-stdlib", "alloc-stdlib", @@ -881,9 +882,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.11.2" +version = "1.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45" +checksum = "02f0e023adb368345ce0ca6cdfc0f24a06554468d0e8503e14a0841de79bfa69" dependencies = [ "find-msvc-tools", "jobserver", @@ -962,9 +963,9 @@ dependencies = [ [[package]] name = "compression-codecs" -version = "0.4.47" +version = "0.4.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84f840cff84d10085260e460023934d0af699e71212b09b2a41452e8bd9cda43" +checksum = "5e41632c2efd201c62f1432f7cbee121b97878eab579da9d85676573d1fd33b9" dependencies = [ "brotli", "compression-core", @@ -1003,21 +1004,20 @@ checksum = "be95d4a884358a21a199689323c29e9256b4a1b315e22f183d155422041d3a9a" [[package]] name = "const-random" -version = "0.1.18" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87e00182fe74b066627d63b85fd550ac2998d4b0bd86bfed477a0ae4c7c71359" +checksum = "d38d4bb3e79c716fd0330d8da84171b0135e59e01076e99f22b75a64c56e952c" dependencies = [ "const-random-macro", ] [[package]] name = "const-random-macro" -version = "0.1.16" +version = "0.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" +checksum = "d66bb491e9fc48cb3fed9d57df886880a751d540d645ebc86b6d9d35b8fa8457" dependencies = [ - "getrandom 0.2.17", - "once_cell", + "getrandom 0.4.3", "tiny-keccak", ] @@ -1032,9 +1032,9 @@ dependencies = [ [[package]] name = "cookie" -version = "0.18.2" +version = "0.18.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87" +checksum = "d55f2d6c30eeec7d5c6f98bd4395d4abb1895629eab97ee6522d340623615f8a" dependencies = [ "percent-encoding", "time", @@ -1127,9 +1127,9 @@ dependencies = [ [[package]] name = "crc32fast" -version = "1.5.5" +version = "1.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b929dd2a135771f40afabd1073f85eed59c800b7c61901e5c254270497dad64" +checksum = "fd9ae8fcb3ea71b0b26338b4ffb13006bb175de8fd07921089a906ce7e5e6945" dependencies = [ "cfg-if", ] @@ -1900,9 +1900,9 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -2235,9 +2235,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.17.1" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +checksum = "735eaa21a6a5ffb2e84362faaeb90c05ba8e19797ca30428478cb6ea3a4921bc" [[package]] name = "heck" @@ -2431,9 +2431,9 @@ dependencies = [ [[package]] name = "hyper" -version = "1.12.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c" +checksum = "229c6ff5584df4c6becbfe00567128bac768c8cd32ebc8a8366bd81ed072e8f3" dependencies = [ "atomic-waker", "bytes", @@ -2644,7 +2644,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" dependencies = [ "equivalent", - "hashbrown 0.17.1", + "hashbrown 0.17.2", "serde", "serde_core", ] @@ -2709,9 +2709,9 @@ version = "0.2.46" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "175dc66334db3b9ab9985bf8b61cfed50dc16d20964bb47f9e479adcae984a7f" dependencies = [ - "jiff-core", - "jiff-static", - "jiff-tzdb-platform", + "jiff-core 0.1.8", + "jiff-static 0.2.46", + "jiff-tzdb-platform 0.1.3", "js-sys", "log", "portable-atomic", @@ -2721,6 +2721,22 @@ dependencies = [ "windows-link", ] +[[package]] +name = "jiff" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "107f2e89536b6818514025f6787b0d94d819e54fe3b40365275fc753de485b3f" +dependencies = [ + "jiff-core 1.0.2", + "jiff-static 1.0.3", + "jiff-tzdb-platform 1.0.0", + "log", + "portable-atomic", + "portable-atomic-util", + "serde_core", + "windows-link", +] + [[package]] name = "jiff-core" version = "0.1.8" @@ -2730,31 +2746,67 @@ dependencies = [ "log", ] +[[package]] +name = "jiff-core" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d44c923edf2bf456a982253f1a9ee1f6e89e421dffd0065d9b9a581da0def58f" +dependencies = [ + "log", +] + [[package]] name = "jiff-static" version = "0.2.46" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7b1af7547d47354bc438d797e3854601bde8f8d185780c5ba4ab27afa54f1ba" dependencies = [ - "jiff-core", + "jiff-core 0.1.8", "proc-macro2", "quote", "syn 2.0.119", ] +[[package]] +name = "jiff-static" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4996f71e569e3a3e32b925c28ef8f0027dc30bb1d594b33eeda409eea185f5c8" +dependencies = [ + "jiff-core 1.0.2", + "proc-macro2", + "quote", + "syn 3.0.10", +] + [[package]] name = "jiff-tzdb" version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0980fca2cc272465bd60e82397607ba9f33add9e48defd77923301bbd03808f2" +[[package]] +name = "jiff-tzdb" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12e71a1b68a875a44a33bb7a1dd84392cb77145a3367a552a3cfe6a4f5cf3afc" + [[package]] name = "jiff-tzdb-platform" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "875a5a69ac2bab1a891711cf5eccbec1ce0341ea805560dcd90b7a2e925132e8" dependencies = [ - "jiff-tzdb", + "jiff-tzdb 0.1.10", +] + +[[package]] +name = "jiff-tzdb-platform" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc65b284afcfa8f6cf189c7274c805505314a7ab975c60e1f548bff56525420e" +dependencies = [ + "jiff-tzdb 1.0.0", ] [[package]] @@ -3051,7 +3103,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec54a4ea92c533f8ed6b8c80dc4bbd60f5b578b173399d92f19bfb5a34bd99a3" dependencies = [ "serde", - "toml 1.2.1+spec-1.1.0", + "toml 1.2.2+spec-1.1.0", ] [[package]] @@ -3392,7 +3444,7 @@ dependencies = [ "bytes", "futures", "http 1.5.0", - "jiff", + "jiff 0.2.46", "log", "md-5", "percent-encoding", @@ -3877,9 +3929,9 @@ checksum = "5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315" [[package]] name = "pin-project-lite" -version = "0.2.17" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" +checksum = "c938015719552d665fd0553b90d96cd7ff58e83e4c061ca99e6bb78865a72752" [[package]] name = "pin-utils" @@ -4000,9 +4052,9 @@ dependencies = [ [[package]] name = "pq-sys" -version = "0.7.8" +version = "0.7.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "297a95d6f2378891f949d9556723e15140e50d29eac07458dabcee8688995b1d" +checksum = "b3bc77e8957fcd07d9768dc26486b07e39339693e21d3c5564be908ef6911540" dependencies = [ "libc", "pkg-config", @@ -4347,9 +4399,9 @@ dependencies = [ [[package]] name = "reqsign-aws-core" -version = "3.3.0" +version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef1efa04a2b037d30bcb6fcefb0f45a4478d89c57c02bc7c2dc8276e19082b15" +checksum = "163fc123fc7cf763a7c7f00f56825100e5dba5002c682eaa46f0bcd789d01bcd" dependencies = [ "asyncband 0.8.0", "bytes", @@ -4371,9 +4423,9 @@ dependencies = [ [[package]] name = "reqsign-aws-v4" -version = "3.4.0" +version = "3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f30bc6afac5932e1c21763dd51fd593a86b242c5a83a8a12d428c0c2bef7819f" +checksum = "acf0c8db7ea8b38ef70375e273b4992227f8c2e57ee8f0df2201b41ccbf1d7c1" dependencies = [ "bytes", "http 1.5.0", @@ -4386,9 +4438,9 @@ dependencies = [ [[package]] name = "reqsign-core" -version = "3.3.3" +version = "3.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5041e58962ebf1a1806a06f45735f1932c9dda25ac2814a59a1b4a3f619c7862" +checksum = "a1eb4e857da46e242365c17ad0bc8ed2899d7c04b38add449c21a309b8776786" dependencies = [ "anyhow", "asyncband 0.8.0", @@ -4397,7 +4449,7 @@ dependencies = [ "hex", "hmac 0.13.0", "http 1.5.0", - "jiff", + "jiff 1.0.3", "log", "percent-encoding", "sha1 0.11.0", @@ -4407,9 +4459,9 @@ dependencies = [ [[package]] name = "reqsign-file-read-tokio" -version = "3.0.8" +version = "3.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66743687bc0ccf687625a39fb8e2d0ddb404c5141ce4edf8636dd18dd5c75a58" +checksum = "686019cebfbebec6a07da664ff3aece6c3214bb3537687aac6eb2da3d31b516f" dependencies = [ "anyhow", "reqsign-core", @@ -5032,9 +5084,9 @@ dependencies = [ [[package]] name = "serde_with" -version = "3.24.0" +version = "3.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df9adc193c780ef8f159aee8b61e2d5801aaa555e6eb0947fe45530ec506296f" +checksum = "56cb1ca7c93ae63d6439b5250f6b6b040f7e121f32e5dd2f5d523dd4149b3204" dependencies = [ "base64 0.23.1", "bs58", @@ -5042,7 +5094,8 @@ dependencies = [ "hex", "indexmap 1.9.3", "indexmap 2.14.2", - "jiff", + "jiff 0.2.46", + "jiff 1.0.3", "schemars 0.9.0", "schemars 1.2.3", "serde_core", @@ -5053,9 +5106,9 @@ dependencies = [ [[package]] name = "serde_with_macros" -version = "3.24.0" +version = "3.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e17bbc68e28663bbbb90df47e058aa7eda4fb445b89fe70457bb94fbccf6e49" +checksum = "cff15a7c864bbec77d9586ca6822bc7c369bdf19e9243134a62b0b51ce26b31f" dependencies = [ "darling 0.24.1", "proc-macro2", @@ -5654,9 +5707,9 @@ dependencies = [ [[package]] name = "toml" -version = "1.2.1+spec-1.1.0" +version = "1.2.2+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5755c51863cdac711f1956baf8eb9588e060755f7d3c4c979e70ea1e1f32cd7" +checksum = "5426cb1b964690d913f6c5c1a1ae0b42f428ec506bb4d452876d7a209c9bca3b" dependencies = [ "serde_core", "serde_spanned 1.1.3", @@ -5699,9 +5752,9 @@ dependencies = [ [[package]] name = "toml_parser" -version = "1.1.5+spec-1.1.0" +version = "1.1.6+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" +checksum = "e6769c452d71ba30696c6b37770c439a9cc9110f47f7d5cdbeda79840ef5ea31" dependencies = [ "winnow 1.0.5", ] @@ -5915,9 +5968,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", @@ -6071,9 +6124,9 @@ checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64" [[package]] name = "walkdir" -version = "2.5.0" +version = "2.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +checksum = "b42e295b7452c4604982280d8586001fcad9b8b201cac67bca9771e7a7475403" dependencies = [ "same-file", "winapi-util", @@ -6657,18 +6710,18 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.8.63" +version = "0.8.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8" +checksum = "ed43f3060383c64b000f3c630550aebdfa9d3b76d48de32390483dd2cc7e0865" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.63" +version = "0.8.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f" +checksum = "a5cbd820fe3e35fb38c83b6dc7e6b1618bc46e0cd10073ae94e8d52dc468d8b9" dependencies = [ "proc-macro2", "quote", @@ -6751,9 +6804,9 @@ dependencies = [ [[package]] name = "zlib-rs" -version = "0.6.8" +version = "0.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" +checksum = "aa76918995d776d9dd34d371030be228d021137449771493d56e29f77e4148ac" [[package]] name = "zmij" diff --git a/Cargo.toml b/Cargo.toml index 4b01ff63..9052a5b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -161,7 +161,7 @@ webauthn-rs-core = "0.5.5" serde_cbor_2 = { version = "0.13.0", optional = true } # Handling of URL's for WebAuthn and favicons -url = "2.5.8" +url = "2.5.9" # Email libraries lettre = { version = "0.11.24", default-features = false, features = [ @@ -217,7 +217,7 @@ bytes = "1.12.2" svg-hush = "0.9.7" # Used for custom short lived cookie jar during favicon extraction -cookie = "0.18.2" +cookie = "0.18.3" cookie_store = "0.22.1" # Used by U2F, JWT and PostgreSQL @@ -270,8 +270,8 @@ aws-config = { version = "1.13.3", optional = true, default-features = false, fe ] } aws-credential-types = { version = "1.3.1", optional = true } aws-smithy-runtime-api = { version = "1.22.0", optional = true } -reqsign-aws-v4 = { version = "3.4.0", optional = true } -reqsign-core = { version = "3.3.3", optional = true } +reqsign-aws-v4 = { version = "3.5.0", optional = true } +reqsign-core = { version = "3.3.4", optional = true } # Strip debuginfo from the release builds # The debug symbols are to provide better panic traces diff --git a/src/api/admin.rs b/src/api/admin.rs index 91e5cfb7..9cadeeab 100644 --- a/src/api/admin.rs +++ b/src/api/admin.rs @@ -99,8 +99,8 @@ static CAN_BACKUP: LazyLock = LazyLock::new(|| ACTIVE_DB_TYPE.get().is_som static CAN_BACKUP: LazyLock = LazyLock::new(|| false); #[get("/")] -fn admin_disabled() -> &'static str { - "The admin panel is disabled, please configure the 'ADMIN_TOKEN' variable to enable it" +fn admin_disabled() -> (Status, &'static str) { + (Status::NotFound, "The admin panel is disabled, please configure the 'ADMIN_TOKEN' variable to enable it") } const COOKIE_NAME: &str = "VW_ADMIN"; diff --git a/src/api/core/two_factor/webauthn.rs b/src/api/core/two_factor/webauthn.rs index c7025413..6b17fa33 100644 --- a/src/api/core/two_factor/webauthn.rs +++ b/src/api/core/two_factor/webauthn.rs @@ -46,6 +46,14 @@ static WEBAUTHN: LazyLock = LazyLock::new(|| { webauthn.build().expect("Building Webauthn failed") }); +fn user_verification_policy() -> UserVerificationPolicy { + if CONFIG.webauthn_2fa_prefer_user_verification() { + UserVerificationPolicy::Preferred + } else { + UserVerificationPolicy::Discouraged_DO_NOT_USE + } +} + pub fn routes() -> Vec { routes![ get_webauthn, @@ -161,7 +169,8 @@ async fn generate_webauthn_challenge(data: Json, headers: )?; let mut state = serde_json::to_value(&state)?; - state["rs"]["policy"] = Value::String("discouraged".to_owned()); + let user_verification_policy = user_verification_policy(); + state["rs"]["policy"] = serde_json::to_value(user_verification_policy)?; state["rs"]["extensions"].as_object_mut().unwrap().clear(); let type_ = TwoFactorType::WebauthnRegisterChallenge; @@ -171,7 +180,7 @@ async fn generate_webauthn_challenge(data: Json, headers: // we need to modify some of the default settings defined by `start_passkey_registration()`. challenge.public_key.extensions = None; if let Some(asc) = challenge.public_key.authenticator_selection.as_mut() { - asc.user_verification = UserVerificationPolicy::Discouraged_DO_NOT_USE; + asc.user_verification = user_verification_policy; } let mut challenge_value = serde_json::to_value(challenge.public_key)?; @@ -424,13 +433,14 @@ pub async fn generate_webauthn_login(user_id: &UserId, conn: &DbConn) -> JsonRes // Modify to discourage user verification let mut state = serde_json::to_value(&state)?; - state["ast"]["policy"] = Value::String("discouraged".to_owned()); + let user_verification_policy = user_verification_policy(); + state["ast"]["policy"] = serde_json::to_value(user_verification_policy)?; // Add appid, this is only needed for U2F compatibility, so maybe it can be removed as well let app_id = format!("{}/app-id.json", CONFIG.domain()); state["ast"]["appid"] = Value::String(app_id.clone()); - response.public_key.user_verification = UserVerificationPolicy::Discouraged_DO_NOT_USE; + response.public_key.user_verification = user_verification_policy; response .public_key .extensions diff --git a/src/config.rs b/src/config.rs index 35a58589..d97943e9 100644 --- a/src/config.rs +++ b/src/config.rs @@ -781,6 +781,9 @@ make_config! { /// Two-Factor remember duration |> Number of days before a remembered Two-Factor login expires (min: 1, max: 90). two_factor_remember_days: i64, true, def, 30; + /// Enable WebAuthn 2FA prefer user verification |> Sets user verification to preferred instead of discouraged, improving compatibility with some security keys. + webauthn_2fa_prefer_user_verification: bool, true, def, false; + /// Disable authenticator time drifted codes to be valid |> Enabling this only allows the current TOTP code to be valid /// TOTP codes of the previous and next 30 seconds will be invalid. authenticator_disable_time_drift: bool, true, def, false;