Intel

AIKIDO-2026-169371

pdfjs-dist is vulnerable to Improper Input Validation

Improper Input Validation Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 3 days ago

72

High Risk

This Affects:

JSpdfjs-dist
0.0.1 - 6.2.108
Fixed in 6.3.289
Are you affected? Scan for Free

TL;DR

pdfjs-dist interpolates untrusted PDF data into CSS, XML, and regex-based parsers without adequate validation. Font family names from the document were inserted into @font-face rules and XFA styles without CSS-string serialization, so a crafted name could inject additional CSS rules into the host page. Several parsers also used super-linear regular expressions (XFA font normalization, autolinker email matching, XFA path positions, and XML entity names) and walked AcroForm Parent chains without detecting cycles, so a crafted PDF could stall the viewer or hang the worker. Invalid XML character references aborted parsing entirely. The fix serializes font families as CSS strings, bounds or anchors the affected regexes, breaks cyclic field walks, and keeps invalid character references as literal text.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application renders untrusted PDF documents.

Background info

pdfjs-dist is vulnerable to Improper Input Validation in versions 0.0.1 - 6.2.108.

How to fix this

Upgrade the pdfjs-dist library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform