Boundaryby OraXLabs

Boundary by OraXLabs · Report revision 1 · 24 Nov 2026

Unstructured PDF
dependency follow-up.

The reviewed Unstructured source still declares pypdf below 7.0.0 and locks 6.10.0. Its PDF entry point calls PdfReader during a preliminary complexity check, before subsequent page-content budgets. A known public pypdf cross-reference-stream memory advisory therefore warrants a conditional dependency review; no practical exhaustion or deployed exposure was tested.

Independent public-source analysis. This report is not commissioned or endorsed by Unstructured. The underlying pypdf advisories were already public; Boundary does not claim to have discovered them.

Executive decision

Review the pypdf compatibility constraint and lock resolution before accepting untrusted PDFs into the selected source profile. Current metadata still excludes both named upstream fixed floors.

Validate compatibility with a dependency version that contains both named fixes, update the constraint and lock together, and verify the actual PDF worker’s resource limits. A public report can document an unresolved dependency concern without claiming a maintainer response or completed fix.

Source-supported conditional concerns
1 · UNS-PDF-01
Additional advisory scope notes
1 · image-path applicability unclosed
New upstream vulnerabilities discovered
0
Executed tests
0
Remediation
Not rechecked

Scope and method

Snapshot: 1ab3be89b689fbe91a2152b720908b7edb143945. The repository’s public status was checked before reading its source. Review date: November 24, 2026.

We read selected dependency sections, the pypdf lock entry, and ordinary PDF entrypoint, complexity and page-count sections. A PDFMiner helper was retrieved as context; no image-decoder advisory path is established by it. Official PyPI release metadata and the two published pypdf advisories were checked separately.

No imports, installation, build, runtime tests, crafted PDFs or requests to a processing service were performed. No released wheel/source byte equivalence, installed dependency graph or hosted deployment was verified. This is not a full audit of the PDF module, lockfile or transitive dependencies.

Source and metadata

Findings at a glance

UNS-PDF-01
Known cross-reference-stream advisory intersects the selected PDF dependency. Conditional source concern; remediation not rechecked.
UNS-PDF-SCOPE-02
Image-format advisory version match only. Specific application reachability remains unverified; not a second confirmed finding.
Severity
Upstream advisories: moderate. No independent Unstructured production severity assigned.

Dependency follow-up

A bounded November 22 metadata record noted Unstructured 0.27.37, a pypdf requirement below 7.0.0 and a 6.10.0 lock. The November 24 reads show the same version facts. The older record used a mutable main link, so today’s pinned commit is not retroactively attributed to that historical record.

Current PyPI 0.27.37 metadata requires pypdf>=6.9.1,<7.0.0 for its all-docs, image, local-inference and pdf extras. The selected current source’s image extra has the same constraint; its committed lock resolves 6.10.0. Both named upstream fixed floors are excluded by that upper bound. These are separate source and release-metadata observations, not proof that every installation uses the lock.

UNS-PDF-01

Known pypdf cross-reference advisory intersects the selected PDF preprocessing dependency

Classification: Known public upstream advisory plus source-supported conditional application path; not a new vulnerability discovery.

Unstructured’s selected current source declares pypdf>=6.9.1,<7.0.0 and the committed lock resolves6.10.0. PyPI0.27.37 extra metadata also excludes7.x. In the ordinary nonimage PDF path, partition_pdf_or_image calls pdf_complexity, which constructs PdfReader before iterating pages and applying the later content-stream budgets. The published upstream advisory concerns memory retained while opening PDFs with many cross-reference streams and names7.1.1 as the fixed floor.

Impact and conditions

Untrusted or attacker-controlled PDFs must actually reach this selected preprocessing path with an affected installed pypdf. Deployment authorization, file admission, worker isolation and process limits determine practical service effect. These conditions were not observed in a deployment.

Evidence

GHSA-5chg-c4f3-fw2p · Possible large memory usage for cross-reference streams. Known public upstream advisory; no reproduction procedure is included.

Counterevidence and limits

Recommendation

Validate a supported pypdf version incorporating7.1.1 or later compatible fixes, update the upper constraint that currently excludes7.x, regenerate the lock and run authorized normal PDF regression/compatibility checks. Confirm any newer applicable upstream requirements rather than treating7.1.1 as universal security assurance.

Treat untrusted PDFs as bounded worker jobs: enforce input admission and finite process memory/runtime/concurrency in the actual authorized environment. Do not rely only on post-construction page/content budgets.

Verification criterion

In an authorized development/staging workflow confirm resolved dependency identity, supported normal PDF processing, effective resource boundaries and reviewed parser lifecycle. No attack-shaped test or reproduction procedure is supplied by this report.

Status: Not rechecked. No dependency change, install, build or runtime tests were performed.

UNS-PDF-SCOPE-02

Image-format advisory is a version match; selected runtime reachability remains unclosed

Classification: Advisory/dependency scope note, not a second confirmed application finding.

The same dependency versions fall below the public7.0.1 image-memory fix floor. That advisory requires loading images through affected filters/modes. This selected pass did not establish such pypdf image loading in Unstructured’s actual image extraction pipeline.

Evidence

GHSA-fhff-j4m8-439h · Possible large memory usage for some image formats (Follow-up). Known public upstream advisory; no reproduction procedure is included.

Counterevidence and limits

Recommendation

Address dependency compatibility with both known fixes, and trace the actual image-loading implementation before elevating this scope note into an application finding.

Status: Not rechecked; image-specific application path remains unverified.

Remediation and closure

  1. For UNS-PDF-01, establish the actual installed dependency and the worker input boundary.
  2. Validate a supported pypdf resolution incorporating both named upstream fixes. Update the constraint and lock; check normal PDF compatibility.
  3. Verify finite process memory, runtime and concurrency limits in an authorized environment. Trace the image path before treating UNS-PDF-SCOPE-02 as an application finding.

Not rechecked. No patch, installation or runtime verification was performed. The selected source still has the described range and lock; no public Unstructured remediation or Boundary credit was established by this review. No claim about private correspondence, customers or maintainer acceptance is made.

Source identity

SHA-256 identifies the retrieved source bytes; it does not certify release authenticity or deployed behavior.

pyproject.toml
41ebc51be6abdbd0dba6fc3bf8f48c38ed012750b8dd3ce60737e1c42a01b16f
uv.lock
494597edfbb9d4323e14b64c33c011e51fec3fda42fd841b87345af8b1b38d49
unstructured/partition/pdf.py
1fb66f12bbdf1b00b2c69c9f0572446883ca625604724f4c66be95671659fd97
unstructured/partition/pdf_image/pdfminer_processing.py
698a3824531d6ef64f88e3cb827502da9c0e7e5a69d5ec76c457b0ace7b72089

Browse public reviews · Review your public project