Skip to content

[Snyk] Fix for 2 vulnerabilities#3892

Open
simensma-fresh wants to merge 1 commit into
developfrom
snyk-fix-28b559826ecb0fd285535e1171d9f63a
Open

[Snyk] Fix for 2 vulnerabilities#3892
simensma-fresh wants to merge 1 commit into
developfrom
snyk-fix-28b559826ecb0fd285535e1171d9f63a

Conversation

@simensma-fresh

Copy link
Copy Markdown
Collaborator

snyk-top-banner

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

Snyk changed the following file(s):

  • services/core-api/requirements.txt
⚠️ Warning
python-docx 1.1.0 requires lxml, which is not installed.
marshmallow-sqlalchemy 0.23.1 requires marshmallow, which is not installed.
Flask-Caching 2.1.0 has requirement cachelib<0.10.0,>=0.9.0, but you have cachelib 0.10.2.
celery 5.3.0 requires kombu, which is not installed.

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:

🦉 XML External Entity (XXE) Injection

Copilot AI review requested due to automatic review settings April 22, 2026 16:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates services/core-api Python dependencies to address two Snyk-reported vulnerabilities by upgrading an existing dependency and adding an explicit dependency version constraint.

Changes:

  • Upgraded python-dotenv from 0.10.3 to 1.2.2.
  • Added an explicit lxml dependency constraint (>=6.1.0) to mitigate a vulnerability.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

urllib3==2.5.0
elasticsearch==8.12.0 No newline at end of file
elasticsearch==8.12.0
lxml>=6.1.0 # not directly required, pinned by Snyk to avoid a vulnerability No newline at end of file

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

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

lxml is described as "pinned" but the specifier is >=6.1.0, which allows future major/minor upgrades and makes installs non-reproducible (especially since nearly all other dependencies in this file use exact == pins). Consider pinning to an exact version (or adding an upper bound) and adjust the comment to match the chosen constraint style.

Suggested change
lxml>=6.1.0 # not directly required, pinned by Snyk to avoid a vulnerability
lxml==6.1.0 # not directly required; pinned to avoid a vulnerability

Copilot uses AI. Check for mistakes.
@sonarqubecloud

Copy link
Copy Markdown

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.

3 participants