Skip to content

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

Description

@hisayya

Summary

RUSTSEC-2026-0187 (transitive DoS via pdf-inspector -> lopdf) is already resolved upstream because pdf-inspector 1.14.2 depends on lopdf 0.42.0. This PR makes the fix explicit and scanner-visible:

  • Add lopdf = "0.42.0" as a direct dependency with a comment citing RUSTSEC-2026-0187
  • Update Cargo.lock accordingly

Why

  • Future dependency-resolution changes cannot silently regress lopdf below the patched version
  • cargo audit / dependabot / security scanners can see the pin directly

Testing

  • cargo build passes (dev profile) under the project's CI-equivalent flags

Branch ready: hisayya/anydoc : fix/rustsec-2026-0187-lopdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions