pypdf is vulnerable to Denial of Service (DoS)
48
Medium Risk
pypdf scans PDF content for the next whitespace byte using read_until_whitespace while tokenizing documents. A crafted PDF that supplies a very long run of non-whitespace bytes drives an inefficient scan whose cost scales poorly with the input length. Processing such input consumes excessive CPU time and produces long runtimes. The fix reworks the scanning implementation so long non-whitespace inputs are handled efficiently.
You are affected if you are using a version that falls within the vulnerable range and you parse or extract content from PDF documents originating from untrusted or externally influenced sources, since tokenizing such input drives the read_until_whitespace scan.
pypdf is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 6.14.2.
Upgrade the pypdf library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant