Skip to content

Conversation

@veer-shipthis
Copy link
Collaborator

πŸ›‘οΈ Security Fixes & Improvements

πŸ”’ Vulnerability Patches

Updated requirements.txt to the latest secure versions to resolve multiple high/moderate severity vulnerabilities reported by Dependabot and pip-audit.

  • requests: Upgraded to 2.32.5 (Fixed Proxy-Auth leak, Session verify issues, .netrc leak)
  • urllib3: Upgraded to 2.6.3 (Fixed Decompression bomb, Proxy-Auth, Cookie leaks)
  • certifi: Upgraded to 2024.7.4 (Removed untrusted root certificates)
  • bleach, idna, pyaes, etc.: Upgraded to their respective patched versions.

πŸ› οΈ Code Improvements

  • Improved Error Handling: Modified ShipthisAPI/shipthisapi.py to return specific HTTP status codes (e.g., 403 Forbidden, 401 Unauthorized) and server messages instead of a generic "Internal Server error".

βœ… Verification

  • Audit: Ran pip-audit locally; result: No known vulnerabilities found.
  • Manual Test: Validated end-to-end using demo.py with valid credentials. Data fetching works as expected.

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.

1 participant