From 1c32e4bd691bde83778ffef235019c8feac0c0c5 Mon Sep 17 00:00:00 2001 From: Jase-Omeileo West Date: Mon, 3 Aug 2026 13:08:34 -0500 Subject: [PATCH] fix(deps): bump lopdf to 0.42.0 for nesting-depth DoS (#198) Bumps lopdf from 0.41.0 to 0.42.0 to fix RUSTSEC-2026-0187, preventing deeply nested PDFs from causing an unrecoverable stack-overflow process abort. --- Cargo.toml | 4 ++-- napi/Cargo.lock | 4 ++-- wasm/Cargo.lock | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5fe6929..aa5cf04 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,14 +46,14 @@ ttf-parser = "0.25" # Native builds keep lopdf's parallel parser and CLI logging. Browser WASM is # deliberately single-threaded so it works without cross-origin isolation. [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -lopdf = { version = "0.41.0", features = ["rayon"] } +lopdf = { version = "0.42.0", features = ["rayon"] } rayon = "1.10" env_logger = "0.11" # Browser builds use JavaScript randomness for encrypted PDFs and embed the # bundled CMaps because there is no filesystem at runtime. [target.'cfg(target_arch = "wasm32")'.dependencies] -lopdf = { version = "0.41.0", default-features = false, features = ["wasm_js"] } +lopdf = { version = "0.42.0", default-features = false, features = ["wasm_js"] } include_dir = "0.7" [dev-dependencies] diff --git a/napi/Cargo.lock b/napi/Cargo.lock index a90be1c..a5cf7f7 100644 --- a/napi/Cargo.lock +++ b/napi/Cargo.lock @@ -693,9 +693,9 @@ checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" [[package]] name = "lopdf" -version = "0.41.0" +version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67513274c50a2b51e5f75d9e682fcf4ab064a8a9c9ae2c3c59309084882bb24d" +checksum = "25aab26d99567469098e64a02f42679f8965c6401263eefa31d8f2dcc37a221c" dependencies = [ "aes", "bitflags", diff --git a/wasm/Cargo.lock b/wasm/Cargo.lock index e81fd09..23fdb0a 100644 --- a/wasm/Cargo.lock +++ b/wasm/Cargo.lock @@ -605,9 +605,9 @@ checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" [[package]] name = "lopdf" -version = "0.41.0" +version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67513274c50a2b51e5f75d9e682fcf4ab064a8a9c9ae2c3c59309084882bb24d" +checksum = "25aab26d99567469098e64a02f42679f8965c6401263eefa31d8f2dcc37a221c" dependencies = [ "aes", "bitflags 2.13.1",