pdfjs-dist is vulnerable to Denial of Service (DoS)
43
CVE Score
Medium
Denial of Service (DoS)
PDF.js computes an automatic font size for AcroForm text fields by repeatedly re-measuring and shrinking the font until the text fits the field, with no bound on the number of iterations or on the size of the field content. A PDF containing an auto-sized text field with large content lets this fitting loop run for an extended period, consuming excessive CPU while the document is simply rendered or viewed (bug 2069428). The fix caps the auto-size font computation so it can no longer run unbounded.
Upgrade the pdfjs-dist library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you render a PDF containing an AcroForm text field configured for automatic font sizing.
2.13.216 - 6.3.289
Fixed in 6.4.299pdfjs-dist is vulnerable to Denial of Service (DoS) in versions 2.13.216 - 6.3.289.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.