fix(deps): upgrade PyPDF2 to pypdf >= 3.9.0 to fix CVE-2023-36464

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-12 02:52:17 +00:00
parent 0c2e308790
commit cc98039246
10 changed files with 31 additions and 31 deletions
+4 -4
View File
@@ -492,8 +492,8 @@ def get_original_text(request: Request, file_id: int, db: Session = Depends(get_
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Original file not found on disk")
try:
# Extract text from PDF using PyPDF2
from PyPDF2 import PdfReader
# Extract text from PDF using pypdf
from pypdf import PdfReader # Upgraded from PyPDF2 to fix CVE-2023-36464
reader = PdfReader(file_record.original_file_path)
text = ""
@@ -532,8 +532,8 @@ def get_processed_text(request: Request, file_id: int, db: Session = Depends(get
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Processed file not found on disk")
try:
# Extract text from PDF using PyPDF2
from PyPDF2 import PdfReader
# Extract text from PDF using pypdf
from pypdf import PdfReader # Upgraded from PyPDF2 to fix CVE-2023-36464
reader = PdfReader(file_record.processed_file_path)
text = ""