Skip to content

[Snyk] Fix for 6 vulnerabilities - #5

Open
ryanmcmorrowsnyk wants to merge 1 commit into
mainfrom
snyk-fix-727d6e995ce5d0794185363fb3959e90
Open

[Snyk] Fix for 6 vulnerabilities#5
ryanmcmorrowsnyk wants to merge 1 commit into
mainfrom
snyk-fix-727d6e995ce5d0794185363fb3959e90

Conversation

@ryanmcmorrowsnyk

Copy link
Copy Markdown
Owner

snyk-top-banner

Snyk has created this PR to fix 6 vulnerabilities in the pip dependencies of this project.

Snyk changed the following file(s):

  • requirements.txt
⚠️ Warning
inflect 6.0.5 has requirement pydantic<2,>=1.9.1, but you have pydantic 1.8.2.
graphql-relay 3.1.0 has requirement typing-extensions<4,>=3.7; python_version < "3.8", but you have typing-extensions 4.7.1.
google-api-core 1.34.1 has requirement protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<4.0.0dev,>=3.19.5, but you have protobuf 4.24.4.

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Cross-site Scripting (XSS)
🦉 Missing Authentication for Critical Function
🦉 Directory Traversal
🦉 More lessons are available in Snyk Learn

@ryanmcmorrowsnyk

Copy link
Copy Markdown
Owner Author

Merge Risk: High

This update includes a high-risk breaking change for nltk and a medium-risk change for requests.

nltk@3.6.2 → nltk@3.9.4

Risk: HIGH

This upgrade of nltk introduces significant breaking changes, primarily in version 3.9.

Breaking Changes:

  • Model Loading: To address a security vulnerability (CVE-2024-39705), pickled models for components like punkt, chunker, and taggers have been replaced. Code that loads these models will need to be updated.
  • WordNet: The synsets() and relations functions no longer return sorted results. If your application relies on a specific order, you will need to implement sorting in your own code.
  • Python Version Support:
    • Support for Python 3.6 was dropped in NLTK 3.7.
    • Support for Python 3.8 was dropped in NLTK 3.9.2.

Recommendation:
Due to the change in model loading and WordNet behavior, it is crucial to test your application's use of NLTK thoroughly. Pay special attention to any code that loads NLTK models or interacts with WordNet synsets.

Source: NLTK Changelog

requests@2.26.0 → requests@2.33.0

Risk: MEDIUM

This upgrade for requests primarily involves dropped support for older Python versions and a specific API change that may affect some users.

Key Changes:

  • Python Version Support:
    • Support for Python 3.7 was officially dropped in version 2.33.0.
    • Support for Python 2.7 and 3.6 was likely removed around version 2.27.x.
  • API Change for Custom Adapters: In version 2.32.2, the internal method _get_connection was renamed to get_connection_with_tls_context. This will only affect users who have created custom HTTPAdapter subclasses.
  • Build System: Starting with version 2.33.0, requests uses a new build system (hatchling). This is unlikely to affect most users, but could cause issues with very old packaging utilities.

Recommendation:
Verify that your environment is using a supported version of Python (3.8+). If you are using custom HTTPAdapter classes, you may need to update your code to use the new get_connection_with_tls_context method.

Source: Requests Changelog

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

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