Intel

AIKIDO-2026-990697

pdfjs-dist is vulnerable to Denial of Service (DoS)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 14, 2026
October 14, 2026

43

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the pdfjs-dist library to the patch version.

Who does this affect?

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.

Package

Versions

2.13.216 - 6.3.289

Fixed in 6.4.299

Background info

pdfjs-dist is vulnerable to Denial of Service (DoS) in versions 2.13.216 - 6.3.289.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea