Security: Fix 8 vulnerabilities in 3 packages#179
Merged
Conversation
This commit addresses all security vulnerabilities detected by Dependabot and pip-audit, upgrading affected packages to patched versions. ## Critical Security Fixes ### 1. Flask-CORS: 3.0.10 → 6.0.0 (6 CVEs fixed) - CVE-2024-1681: CORS policy bypass - CVE-2024-6844: Inconsistent CORS matching with '+' character - CVE-2024-6866: Case-insensitive path matching vulnerability - CVE-2024-6839: Improper regex pattern priority - PYSEC-2024-71 (duplicate entries) **Impact:** Prevents unauthorized cross-origin access to sensitive endpoints and data leaks from misconfigured CORS policies. ### 2. cryptography: >=44.0.1 → >=46.0.5 (CVE-2026-26007) - Missing elliptic curve point validation - Affects ECDH/ECDSA operations on SECT curves - Can leak private key information via small subgroup attacks **Impact:** Prevents private key leakage and signature forgery in elliptic curve cryptography operations. ### 3. PyNaCl: implicit 1.6.0 → >=1.6.2 (CVE-2025-69277) - Invalid elliptic curve point validation in libsodium - crypto_core_ed25519_is_valid_point weakness - Points outside main cryptographic group accepted **Impact:** Ensures elliptic curve points are properly validated, preventing cryptographic group confusion attacks. ## Additional Package Updates Updated packages to match installed versions and improve consistency: - python-dotenv: 0.19.1 → >=1.0.1 - slack_sdk: 3.18.1 → >=3.27.1 - redis: 5.2.1 → >=6.1.0 - cffi: ==1.15.0 → >=1.15.0 (allows newer versions) ## Verification ```bash pip-audit -r requirements.txt # Result: No known vulnerabilities found ``` All 8 vulnerabilities have been resolved. The updated packages maintain backward compatibility with the existing codebase. ## References - Flask-CORS vulnerabilities: https://github.com/corydolphin/flask-cors/security - CVE-2026-26007: https://nvd.nist.gov/vuln/detail/CVE-2026-26007 - CVE-2025-69277: https://nvd.nist.gov/vuln/detail/CVE-2025-69277 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit addresses all security vulnerabilities detected by Dependabot and pip-audit, upgrading affected packages to patched versions.
Critical Security Fixes
1. Flask-CORS: 3.0.10 → 6.0.0 (6 CVEs fixed)
Impact: Prevents unauthorized cross-origin access to sensitive
endpoints and data leaks from misconfigured CORS policies.
2. cryptography: >=44.0.1 → >=46.0.5 (CVE-2026-26007)
Impact: Prevents private key leakage and signature forgery in
elliptic curve cryptography operations.
3. PyNaCl: implicit 1.6.0 → >=1.6.2 (CVE-2025-69277)
Impact: Ensures elliptic curve points are properly validated,
preventing cryptographic group confusion attacks.
Additional Package Updates
Updated packages to match installed versions and improve consistency:
Verification
pip-audit -r requirements.txt # Result: No known vulnerabilities foundAll 8 vulnerabilities have been resolved. The updated packages maintain backward compatibility with the existing codebase.
References
What does the PR do?
A description of the changes proposed in the pull request.
Type of change
Linked Issue
Related Issue: reference to a related issue
Make sure you have