Skip to content

Conversation

@aritorto
Copy link
Member

@aritorto aritorto commented Jun 11, 2025

GitHub dependabot warns about a security vulnerability (.netrc credentials may be exposed to third parties through crafted URLs.) in the current version of requests 2.32.3 (see poetry.lock file) and recommends upgrading it to version 2.32.4 or later, see https://github.com/OPM/opm-python-documentation/security/dependabot/7

While attempting to update requests from version 2.32.3 to 2.32.4 using poetry install, the version was unexpectedly downgraded to 2.32.2.

To resolve this, the dependency was explicitly pinned by adding requests = ">=2.32.4" under the [tool.poetry.dependencies] section in pyproject.toml, followed by running poetry update requests to apply the change correctly.

@aritorto aritorto changed the title Upgrade requests 2.32.2->2.32.4 Upgrade requests 2.32.3->2.32.4 Jun 11, 2025
@aritorto aritorto requested a review from hakonhagland June 11, 2025 07:45

[tool.poetry.dependencies]
python = "^3.10"
requests = ">=2.32.4"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should use the caret operator instead of ">=" operator? To be consistent with the other package requirements which use the caret operator

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I'll change that. Thanks!

@hakonhagland hakonhagland merged commit 38fb045 into OPM:master Jun 11, 2025
6 checks passed
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