This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate printpdf

Dependencies

(19 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 lopdf^0.39.00.39.0up to date
 time ⚠️^0.3.250.3.47maybe insecure
 allsorts^0.16.10.16.1up to date
 image^0.250.25.9up to date
 svg2pdf^0.13.00.13.0up to date
 base64^0.22.10.22.1up to date
 weezl^0.1.80.1.12up to date
 serde^11.0.228up to date
 serde_derive^11.0.228up to date
 flate2^1.0.351.1.9up to date
 serde_json^11.0.149up to date
 rust-fontconfig^2.0.02.0.0up to date
 xmlparser^0.13.60.13.6up to date
 web-sys^0.3.770.3.85up to date
 wasm-bindgen-futures^0.4.500.4.58up to date
 kuchiki^0.8.10.8.1up to date
 wasm-bindgen^0.20.2.108up to date
 js-sys^0.3.400.3.85up to date
 getrandom^0.30.4.1out of date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 pretty_assertions^1.4.11.4.1up to date
 text-diff^0.4.00.4.0up to date

Security Vulnerabilities

time: Denial of Service via Stack Exhaustion

RUSTSEC-2026-0009

Impact

When user-provided input is provided to any type that parses with the RFC 2822 format, a denial of service attack via stack exhaustion is possible. The attack relies on formally deprecated and rarely-used features that are part of the RFC 2822 format used in a malicious manner. Ordinary, non-malicious input will never encounter this scenario.

Patches

A limit to the depth of recursion was added in v0.3.47. From this version, an error will be returned rather than exhausting the stack.

Workarounds

Limiting the length of user input is the simplest way to avoid stack exhaustion, as the amount of the stack consumed would be at most a factor of the length of the input.