Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 22, 2025

Bumps pypdf from 6.0.0 to 6.1.3.

Release notes

Sourced from pypdf's releases.

Version 6.1.3, 2025-10-22

What's new

Security (SEC)

Bug Fixes (BUG)

  • PageObject.scale() scales media box incorrectly (#3489) by @​Nid01

Robustness (ROB)

Full Changelog

Version 6.1.2, 2025-10-19

What's new

Bug Fixes (BUG)

Robustness (ROB)

Developer Experience (DEV)

Full Changelog

Version 6.1.1, 2025-09-28

What's new

Bug Fixes (BUG)

Documentation (DOC)

Full Changelog

Version 6.1.0, 2025-09-21

What's new

New Features (ENH)

... (truncated)

Changelog

Sourced from pypdf's changelog.

Version 6.1.3, 2025-10-22

Security (SEC)

  • Allow limiting size of LZWDecode streams (#3502)
  • Avoid infinite loop when reading broken DCT-based inline images (#3501)

Bug Fixes (BUG)

  • PageObject.scale() scales media box incorrectly (#3489)

Robustness (ROB)

  • Fail with explicit exception when image mode is an empty array (#3500)

Full Changelog

Version 6.1.2, 2025-10-19

Bug Fixes (BUG)

  • Fix handling of zero-length StreamObject (#3485)

Robustness (ROB)

  • Deal with wrong size for incremental PDF files (#3495)
  • Improve handling for malformed cross-reference tables (#3483)

Developer Experience (DEV)

  • Use released Python 3.14
  • Use Mapping instead of dict in type hint of update_page_form_field_values (#3490)

Full Changelog

Version 6.1.1, 2025-09-28

Bug Fixes (BUG)

  • Insert new embedded files in a sorted manner (#3477)
  • Fix name tree handling for embedded files with Kids-based inputs (#3475)
  • Make embedding files not break PDF/A-3 compliance (#3472)

Documentation (DOC)

  • Document AFRelationship handling for PDF/A and provide constants (#3478)

Full Changelog

Version 6.1.0, 2025-09-21

New Features (ENH)

  • Enhance XMP metadata handling with creation and setter methods (#3410)
  • Add all font metrics for base 14 Type 1 PDF fonts (#3363)
  • Allow deleting embedded files (#3461)
  • Add support for Python in FIPS mode for document identifier (#3438)

Bug Fixes (BUG)

... (truncated)

Commits
  • 4a613f3 REL: 6.1.3
  • e51d078 SEC: Allow limiting size of LZWDecode streams (#3502)
  • f2864d6 SEC: Avoid infinite loop when reading broken DCT-based inline images (#3501)
  • b751ca2 ROB: Fail with explicit exception when image mode is an empty array (#3500)
  • e13a1e0 BUG: PageObject.scale() scales media box incorrectly (#3489)
  • 0859b35 REL: 6.1.2
  • 623a700 BUG: Fix handling of zero-length StreamObject (#3485)
  • 16c4c44 ROB: Deal with wrong size for incremental PDF files (#3495)
  • 54c0dd7 DEV: Use released Python 3.14
  • 9fad9ff DEV: Use Mapping instead of dict in type hint of update_page_form_field_value...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Summary by cubic

Upgrade pypdf to 6.1.3 to pick up security hardening and bug fixes. This improves safety when parsing malformed PDFs and fixes page scaling and stream handling issues.

  • Dependencies
    • pypdf: 6.0.0 → 6.1.3 (security: LZWDecode size limit, fix infinite loop on broken DCT inline images; fixes: zero-length StreamObject, media box scaling)

Bumps [pypdf](https://github.com/py-pdf/pypdf) from 6.0.0 to 6.1.3.
- [Release notes](https://github.com/py-pdf/pypdf/releases)
- [Changelog](https://github.com/py-pdf/pypdf/blob/main/CHANGELOG.md)
- [Commits](py-pdf/pypdf@6.0.0...6.1.3)

---
updated-dependencies:
- dependency-name: pypdf
  dependency-version: 6.1.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Oct 22, 2025
@dependabot dependabot bot requested a review from a team as a code owner October 22, 2025 20:08
@vercel
Copy link

vercel bot commented Oct 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
internal-search Ready Ready Preview Comment Oct 22, 2025 8:20pm

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Oct 22, 2025
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Overview

Summary

Updated pypdf dependency from 6.0.0 to 6.1.3, bringing important security fixes and bug improvements.

Key changes in this update:

  • Security fixes: Addresses two critical security issues - limiting size of LZWDecode streams and preventing infinite loops when reading broken DCT-based inline images
  • Bug fixes: Corrects PageObject.scale() media box scaling issue and improves handling of zero-length StreamObject
  • Robustness improvements: Better handling of malformed PDFs, incremental PDF files, and cross-reference tables

The pypdf library is used indirectly through markitdown[pdf] (line 46 in default.txt) for PDF file processing in /backend/onyx/file_processing/extract_file_text.py. This update is a routine maintenance bump with backward-compatible improvements.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk - it's a standard dependency update with security improvements
  • The update is from a reputable library (pypdf) maintained by the py-pdf organization, brings important security fixes for potential DoS vulnerabilities, and maintains backward compatibility. The version jump from 6.0.0 to 6.1.3 is a minor/patch update that only includes bug fixes, security improvements, and robustness enhancements without breaking API changes. Since pypdf is used indirectly through markitdown for PDF processing, and the changes are focused on edge case handling and security, there's minimal risk of regression
  • No files require special attention - this is a straightforward dependency version bump

Important Files Changed

File Analysis

Filename Score Overview
backend/requirements/default.txt 5/5 Updated pypdf from 6.0.0 to 6.1.3, includes security fixes for LZWDecode streams and DCT-based inline images

Sequence Diagram

sequenceDiagram
    participant Dependabot
    participant CI/CD
    participant Requirements
    participant MarkItDown
    participant PyPDF
    participant FileProcessing
    
    Dependabot->>Requirements: Update pypdf 6.0.0 → 6.1.3
    Note over Requirements: backend/requirements/default.txt
    
    CI/CD->>Requirements: Install dependencies
    Requirements->>MarkItDown: Install markitdown[pdf]
    MarkItDown->>PyPDF: Dependency: pypdf==6.1.3
    
    Note over PyPDF: Security fixes:<br/>- LZWDecode stream limits<br/>- DCT inline image loop fix<br/>- Robustness improvements
    
    FileProcessing->>MarkItDown: Use for PDF conversion
    MarkItDown->>PyPDF: Process PDF files
    PyPDF-->>MarkItDown: Return parsed content
    MarkItDown-->>FileProcessing: Return markdown text
Loading

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant