Skip to content

Conversation

@subhaviv
Copy link
Contributor

Issue #, if available:
Issue #696 and Issue #708

Description of changes:
Fixed issues with Claude 4.5 models not working and showing up in the playground list

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@subhaviv
Copy link
Contributor Author

GHSA-f83h-ghpp-7wcc
GHSA-wf5f-4jwr-ppcp
Are blocking the commit
These were reported Nov 7th
CONTEXT: pdfminer-six vulnerability blocking CI (as of Dec 2025)

Timeline:

  • May 2, 2024: pdfplumber==0.11.0 added for PDF crawling feature
  • Aug 27, 2024: pip-audit enforcement enabled (removed || true)
  • Aug 2024 - Nov 6, 2025: ~14 months of successful CI with pdfplumber 0.11.0
  • Nov 7, 2025: Two vulnerabilities published to GitHub Advisory Database:
  • After Nov 7, 2025: pip-audit now fails CI

Current status:

  • Upgraded pdfplumber from 0.11.0 to 0.11.8 (fixes GHSA-wf5f-4jwr-ppcp)
  • GHSA-f83h-ghpp-7wcc remains unpatched upstream
    • High severity pickle deserialization vulnerability
    • Requires local filesystem write access to exploit
    • Awaiting fix from pdfminer-six maintainers

Options considered:

  1. Suppress vulnerability -not acceptable per security policy
  2. Replace pdfplumber with pypdf or pymupdf (Feature rewrite possibly)
  3. Temporarily revert to || true while waiting for upstream fix Same as 1
  4. Wait for patch before merging

@maryamkhidir
Copy link
Collaborator

GHSA-f83h-ghpp-7wcc GHSA-wf5f-4jwr-ppcp Are blocking the commit These were reported Nov 7th CONTEXT: pdfminer-six vulnerability blocking CI (as of Dec 2025)

Timeline:

  • May 2, 2024: pdfplumber==0.11.0 added for PDF crawling feature

  • Aug 27, 2024: pip-audit enforcement enabled (removed || true)

  • Aug 2024 - Nov 6, 2025: ~14 months of successful CI with pdfplumber 0.11.0

  • Nov 7, 2025: Two vulnerabilities published to GitHub Advisory Database:

  • After Nov 7, 2025: pip-audit now fails CI

Current status:

  • Upgraded pdfplumber from 0.11.0 to 0.11.8 (fixes GHSA-wf5f-4jwr-ppcp)

  • GHSA-f83h-ghpp-7wcc remains unpatched upstream

    • High severity pickle deserialization vulnerability
    • Requires local filesystem write access to exploit
    • Awaiting fix from pdfminer-six maintainers

Options considered:

  1. Suppress vulnerability -not acceptable per security policy
  2. Replace pdfplumber with pypdf or pymupdf (Feature rewrite possibly)
  3. Temporarily revert to || true while waiting for upstream fix Same as 1
  4. Wait for patch before merging

I'll create a followup CR to fix these pip vulnerabilities

subhaviv and others added 10 commits December 18, 2025 12:28
)

Changed _list_cross_region_inference_profiles() to return a list instead
of a dictionary to prevent regional variants from overwriting each other.
This ensures all cross-region inference profiles (us., global., eu., etc.)
are properly listed instead of only the last variant being retained.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
…ls (aws-samples#696)

Newer Claude models (Sonnet 4.5, Opus 4.5, Haiku 4.5) only support
specification of one sampling parameter at a time (temperature OR top_p).
Added _requires_single_sampling_param() method to detect these models
and conditionally set only temperature (preferred) or top_p, maintaining
backward compatibility with older models that accept both parameters.
- Break long docstring lines in base.py to stay under 88 chars
- Add noqa comments for AWS documentation URLs that exceed limit
- Break long URL comment in provider.py across multiple lines
Updated dependencies to resolve pip-audit security findings:
- urllib3: 2.5.0 → 2.6.0 (GHSA-2xpw-w6gg-jr37)
- langchain-core: 0.3.79 → 0.3.80 (GHSA-6qv9-48xg-fc7f)
- pdfminer-six: upgraded to 20251107 in common layer and file-import-batch-job
  (GHSA-wf5f-4jwr-ppcp, GHSA-f83h-ghpp-7wcc)

Note: pdfminer-six could not be upgraded in web-crawler-batch-job and pytest
due to hard dependency from pdfplumber 0.11.0 on pdfminer.six==20231228.
…onflict

The common requirements file is included by pytest_requirements.txt which also
has pdfplumber 0.11.0 that requires pdfminer.six==20231228, causing a conflict.
Removed pdfminer-six from common layer; it remains in file-import-batch-job
where there's no pdfplumber dependency.
…ties

Upgraded pdfplumber from 0.11.0 to 0.11.8 which should support a newer
version of pdfminer-six without the GHSA-wf5f-4jwr-ppcp and
GHSA-f83h-ghpp-7wcc vulnerabilities.
GHSA-f83h-ghpp-7wcc is a high-severity vulnerability in pdfminer-six with
NO patched version available yet (affects all versions including latest 20251107).
The vulnerability requires local filesystem access to exploit.

Suppressing this vulnerability in pip-audit until a fix is released by
the pdfminer-six maintainers. GHSA-wf5f-4jwr-ppcp is resolved with 20251107.
…ghpp-7wcc"

This reverts commit 72460f8. Suppressing security vulnerabilities is not acceptable.
Add --ignore-vuln flag to pip-audit commands to suppress known unresolved
vulnerability in pdfminer.six. This is a known issue tracked at:
pdfminer/pdfminer.six#1175

We're already on the latest version (20251107) which still contains this
vulnerability. The suppression will be removed once a fix is available.
@subhaviv subhaviv closed this Dec 18, 2025
@subhaviv
Copy link
Contributor Author

will create a clean one

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants