-
Notifications
You must be signed in to change notification settings - Fork 0
🛡️ Sentinel: [MEDIUM] Fix vulnerable dependency range for cryptography #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| ## 2025-04-07 - Vulnerable Dependency Range | ||
| **Vulnerability:** The `pyproject.toml` configuration allowed `cryptography>=3.1`, which includes versions with known critical vulnerabilities (like CVE-2023-23931 and CVE-2020-25659). | ||
| **Learning:** Overly broad dependency ranges for security-critical packages like `cryptography` can accidentally introduce vulnerabilities if an older, affected version satisfies the constraint. It's safer to have tighter bounds or specifically exclude vulnerable major versions. | ||
| **Prevention:** Establish a process to regularly review and update minimum required versions for dependencies that deal with encryption, authentication, or other sensitive operations. Use a minimum version that is known to be patched against historical CVEs. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ readme = "README.md" | |
| requires-python = ">=3.10" | ||
| urls = { Homepage = "https://github.com/jbarrow/commonforms" } | ||
| dependencies = [ | ||
| "cryptography>=3.1", | ||
| "cryptography>=42.0.0", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query: `Verify from official sources:
💡 Result:
Sources: Citations:
Consider raising Version 42.0.0 itself is affected by at least two known CVEs:
Additionally, common ecosystem packages already require newer versions:
Pinning to 42.0.0 does not prevent resolution to vulnerable releases and may cause compatibility friction with dependencies. 🤖 Prompt for AI Agents |
||
| "formalpdf==0.1.6", | ||
| "huggingface-hub>=0.35.3", | ||
| "onnx>=1.19.1", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix journal entry date to match PR timeline.
The heading date appears off by one year versus this PR creation date (
2026-04-07).🛠️ Suggested doc fix
📝 Committable suggestion
🤖 Prompt for AI Agents