Skip to content

fix: pin lopdf to 0.42.0 to close RUSTSEC-2026-0187 - #101

Open
hisayya wants to merge 1 commit into
firecrawl:mainfrom
hisayya:fix/rustsec-2026-0187-lopdf
Open

fix: pin lopdf to 0.42.0 to close RUSTSEC-2026-0187#101
hisayya wants to merge 1 commit into
firecrawl:mainfrom
hisayya:fix/rustsec-2026-0187-lopdf

Conversation

@hisayya

@hisayya hisayya commented Aug 15, 2026

Copy link
Copy Markdown

Closes #100

Explicitly pin lopdf = "0.42.0" (direct dependency with RUSTSEC-2026-0187 comment) so the patched version cannot silently regress and scanners can see it. cargo build passes.


Summary by cubic

Pins lopdf to 0.42.0 to remediate RUSTSEC-2026-0187 (stack overflow DoS). Previously lopdf was only transitive and could resolve <0.42.0; now it is a direct dependency pinned to the patched version to prevent resolution regressions and improve scanner visibility.

Review notes

  • Adds lopdf = "0.42.0" to Cargo.toml with an advisory comment; updates Cargo.lock.
  • No code or runtime behavior changes; this only affects dependency resolution and auditability.

Written for commit 2e3ee24. Summary will update on new commits.

Review in cubic

pdf-inspector transitively depends on lopdf. Versions <0.42.0 are
vulnerable to RUSTSEC-2026-0187: a crafted PDF with a deeply nested
catalog array (~21KB) causes a stack overflow and aborts the process
with an uncatchable SIGABRT (CVSS 3.1 7.5, remote DoS on untrusted
PDF input).

pdf-inspector 1.14.2 already resolves lopdf 0.42.0, but pinning the
transitive dependency explicitly guards against resolution
regressions and makes the patched version constraint visible to
auditors (osv-scanner, cargo-audit).

Refs: https://rustsec.org/advisories/RUSTSEC-2026-0187.html

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: pin lopdf to 0.42.0 to close RUSTSEC-2026-0187 explicitly

1 participant