chore(deps): upgrade pdf-inspector to 0.1.8 (RUSTSEC-2026-0187) - #2588
Open
1688mengdie wants to merge 1 commit into
Open
chore(deps): upgrade pdf-inspector to 0.1.8 (RUSTSEC-2026-0187)#25881688mengdie wants to merge 1 commit into
1688mengdie wants to merge 1 commit into
Conversation
Upgrade the transitive pdf-inspector dependency from 0.1.7 to 0.1.8 so that its lopdf requirement resolves to 0.42.0, which fixes RUSTSEC-2026-0187 (stack overflow when parsing deeply nested PDF objects, CVSS 7.5). Only the locked version and checksum change; the dependency graph and application sources are unchanged. Test: cargo check --locked -p bitfun-cli --jobs 4; cargo tree --locked -i lopdf --depth 1 AI: lightly tested
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cargo auditreports RUSTSEC-2026-0187 against the lockedlopdfdependency: a stack overflow when parsing deeply nested PDF objects
(CVSS 7.5).
Cargo.lockonmainpinslopdf0.41.0, which is withinthe affected range; the advisory is fixed in
lopdf>= 0.42.0.The vulnerable
lopdfversion is reached throughpdf-inspector 0.1.7on the anydoc document-reading path. An attacker who can supply a
crafted PDF document can trigger unbounded recursion in the parser and
crash the process.
This PR upgrades
pdf-inspectorfrom 0.1.7 to 0.1.8, which raises itslopdfrequirement to >= 0.42.0 so the locked resolution leaves theaffected range. Only the locked version and checksum change; the
dependency graph and application sources are unchanged apart from
transitive lockfile re-pinning of
getrandom/windows-sysentries thatcargo re-resolves for the new
lopdftree.Fixes #2586
Type and Areas
Type: dependency
Areas: Rust core dependency
Verification
cargo check --locked -p bitfun-cli --jobs 4— passed (0 errors; 19 pre-existing warnings unchanged).cargo tree --locked -i lopdf --depth 1— resolvedlopdf v0.42.0throughpdf-inspector v0.1.8.cargo deny check advisories(run in a workspace where the advisory is tracked) — reports the vulnerability on the baseline lockfile and clears after this change (advisory solution: upgrade to >= 0.42.0).Reviewer Notes
pdf-inspector0.1.8 keeps the same 0.1.x compatibility line;lopdfmoves 0.41.0 -> 0.42.0 within its declared requirement.Checklist
This is an AI-assisted change.