Skip to content

[Snyk] Fix for 5 vulnerabilities#21

Open
deargvp1 wants to merge 1 commit into
mainfrom
snyk-fix-b821bc7206932889373382178c2bf3ef
Open

[Snyk] Fix for 5 vulnerabilities#21
deargvp1 wants to merge 1 commit into
mainfrom
snyk-fix-b821bc7206932889373382178c2bf3ef

Conversation

@deargvp1
Copy link
Copy Markdown
Owner

@deargvp1 deargvp1 commented Jun 3, 2026

snyk-top-banner

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

Snyk changed the following file(s):

  • composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/requirements-composer.txt
⚠️ Warning
pandas-gbq 0.21.0 has requirement google-api-core<3.0.0dev,>=2.10.2, but you have google-api-core 1.34.1.
pandas-gbq 0.21.0 has requirement google-auth>=2.13.0, but you have google-auth 1.35.0.
opentelemetry-api 1.22.0 has requirement importlib-metadata<7.0,>=6.0, but you have importlib-metadata 2.1.3.
google-cloud-workflows 1.20.0 has requirement google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-vision 1.0.2 has requirement protobuf<4.0.0dev, but you have protobuf 4.24.4.
google-cloud-videointelligence 1.16.3 has requirement protobuf<4.0.0dev, but you have protobuf 4.24.4.
google-cloud-translate 1.7.2 has requirement protobuf<4.0.0dev, but you have protobuf 4.24.4.
google-cloud-texttospeech 1.0.3 has requirement protobuf<4.0.0dev, but you have protobuf 4.24.4.
google-cloud-tasks 2.21.0 has requirement google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-tasks 2.21.0 has requirement grpc-google-iam-v1<1.0.0,>=0.14.0, but you have grpc-google-iam-v1 0.12.7.
google-cloud-speech 1.3.4 has requirement protobuf<4.0.0dev, but you have protobuf 4.24.4.
google-cloud-spanner 1.19.3 has requirement protobuf<4.0.0dev, but you have protobuf 4.24.4.
google-cloud-secret-manager 1.0.2 has requirement protobuf<4.0.0dev, but you have protobuf 4.24.4.
google-cloud-redis 2.20.0 has requirement google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-pubsub 2.34.0 has requirement google-auth<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-os-login 2.19.0 has requirement google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-monitoring 2.29.1 has requirement google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-memcache 1.14.0 has requirement google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-logging 2.7.2 has requirement protobuf<4.0.0dev, but you have protobuf 4.24.4.
google-cloud-language 1.3.2 has requirement protobuf<4.0.0dev, but you have protobuf 4.24.4.
google-cloud-kms 2.24.2 has requirement google-auth!=2.24.0,!=2.25.0,<3.0.0dev,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-dlp 1.0.2 has requirement protobuf<4.0.0dev, but you have protobuf 4.24.4.
google-cloud-dataproc 2.6.2 has requirement protobuf<4.0.0dev, but you have protobuf 4.24.4.
google-cloud-dataproc 2.6.2 has requirement packaging<22.0.0dev,>=14.3, but you have packaging 24.0.
google-cloud-datacatalog 3.29.0 has requirement google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-datacatalog 3.29.0 has requirement grpc-google-iam-v1<1.0.0,>=0.14.0, but you have grpc-google-iam-v1 0.12.7.
google-cloud-container 1.0.3 has requirement protobuf<4.0.0dev, but you have protobuf 4.24.4.
google-cloud-bigtable 1.7.3 has requirement protobuf<4.0.0dev, but you have protobuf 4.24.4.
google-cloud-bigquery 3.30.0 has requirement google-api-core[grpc]<3.0.0dev,>=2.11.1, but you have google-api-core 1.34.1.
google-cloud-bigquery 3.30.0 has requirement google-auth<3.0.0dev,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-bigquery-storage 2.36.2 has requirement google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-bigquery-datatransfer 3.21.0 has requirement google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-automl 2.18.1 has requirement google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
google-cloud-appengine-logging 1.8.0 has requirement google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1, but you have google-auth 1.35.0.
google-auth-oauthlib 0.8.0 has requirement google-auth>=2.15.0, but you have google-auth 1.35.0.
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.
google-ads 7.0.0 has requirement protobuf<4.0.0,>=3.13.0, but you have protobuf 4.24.4.
Flask-JWT-Extended 3.25.1 has requirement PyJWT<2.0,>=1.6.4, but you have PyJWT 2.8.0.
Flask-AppBuilder 2.3.4 has requirement marshmallow<3.0.0,>=2.18.0, but you have marshmallow 3.19.0.
Flask-AppBuilder 2.3.4 has requirement email-validator<2,>=1.0.5, but you have email-validator 2.1.0.
apache-airflow 1.10.15 requires thrift, which is not installed.
apache-airflow 1.10.15 has requirement requests<2.24.0,>=2.20.0; python_version >= "3.0", but you have requests 2.31.0.

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:

🦉 Resource Exhaustion


Summary by cubic

Pin idna, requests, and urllib3 to address 5 vulnerabilities reported by Snyk in the Composer unit test environment. Changes are limited to composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/requirements-composer.txt.

  • Dependencies

    • idna>=3.7
    • requests>=2.31.0
    • urllib3>=1.26.18
  • Migration

    • Run tests to catch potential conflicts with apache-airflow 1.10.x and Google Cloud client libraries that may require older requests/protobuf versions.

Written for commit 4c9cfd7. Summary will update on new commits.

Review in cubic

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 3, 2026

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6fe77485-35c7-4938-b5dd-39dccd64b8d7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch snyk-fix-b821bc7206932889373382178c2bf3ef

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds pins for idna, requests, and urllib3 in requirements-composer.txt to address security vulnerabilities. However, these additions introduce dependency conflicts with apache-airflow==1.10.15, which requires older versions of these packages, leading to installation and dependency resolution failures.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@@ -1 +1,4 @@
apache-airflow-backport-providers-google==2021.3.3
idna>=3.7 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Pinning idna>=3.7 introduces a dependency conflict. Since apache-airflow==1.10.15 (defined in requirements.txt) requires requests<2.24.0 (which resolves to requests==2.23.0), and requests 2.23.0 strictly requires idna<3,>=2.5, this pin will cause dependency resolution to fail.

@@ -1 +1,4 @@
apache-airflow-backport-providers-google==2021.3.3
idna>=3.7 # not directly required, pinned by Snyk to avoid a vulnerability
requests>=2.31.0 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Pinning requests>=2.31.0 introduces a direct dependency conflict with apache-airflow==1.10.15 (defined in requirements.txt), which strictly requires requests<2.24.0,>=2.20.0. This conflict will cause installation and dependency resolution failures during deployment or testing.

apache-airflow-backport-providers-google==2021.3.3
idna>=3.7 # not directly required, pinned by Snyk to avoid a vulnerability
requests>=2.31.0 # not directly required, pinned by Snyk to avoid a vulnerability
urllib3>=1.26.18 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Pinning urllib3>=1.26.18 introduces a dependency conflict. Since apache-airflow==1.10.15 requires requests<2.24.0, and requests versions in that range (such as 2.23.0) strictly require urllib3<1.26, this pin will cause dependency resolution to fail.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

3 issues found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/requirements-composer.txt">

<violation number="1" location="composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/requirements-composer.txt:2">
P1: Pinning `idna>=3.7` creates an unsatisfiable dependency conflict. This environment targets Apache Airflow 1.10.x (via the backport providers package), which constrains `requests<2.24.0`. The `requests==2.23.0` package strictly requires `idna<3,>=2.5`, so `idna>=3.7` cannot be co-installed without a dependency resolution failure.</violation>

<violation number="2" location="composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/requirements-composer.txt:3">
P1: `requests>=2.31.0` requires Python >=3.7, but the existing pinned package `apache-airflow-backport-providers-google==2021.3.3` targets Airflow 1.10.* (Composer 1), which may run on Python 3.6. If the environment uses Python 3.6, pip will fail to install `requests==2.31.0` (Python >=3.7 required), breaking the entire dependency resolution and preventing the environment from building.</violation>

<violation number="3" location="composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/requirements-composer.txt:4">
P1: Pinning `urllib3>=1.26.18` conflicts with the `requests` version required by Airflow 1.10.x. The `requests==2.23.0` package (constrained by Airflow) strictly requires `urllib3<1.26,>=1.21.1`, so this pin will cause dependency resolution failure. Even if forcibly installed, `requests` performs a runtime compatibility assertion that urllib3's minor version must be <= 25.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@@ -1 +1,4 @@
apache-airflow-backport-providers-google==2021.3.3
idna>=3.7 # not directly required, pinned by Snyk to avoid a vulnerability
requests>=2.31.0 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1: requests>=2.31.0 requires Python >=3.7, but the existing pinned package apache-airflow-backport-providers-google==2021.3.3 targets Airflow 1.10.* (Composer 1), which may run on Python 3.6. If the environment uses Python 3.6, pip will fail to install requests==2.31.0 (Python >=3.7 required), breaking the entire dependency resolution and preventing the environment from building.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/requirements-composer.txt, line 3:

<comment>`requests>=2.31.0` requires Python >=3.7, but the existing pinned package `apache-airflow-backport-providers-google==2021.3.3` targets Airflow 1.10.* (Composer 1), which may run on Python 3.6. If the environment uses Python 3.6, pip will fail to install `requests==2.31.0` (Python >=3.7 required), breaking the entire dependency resolution and preventing the environment from building.</comment>

<file context>
@@ -1 +1,4 @@
 apache-airflow-backport-providers-google==2021.3.3
+idna>=3.7 # not directly required, pinned by Snyk to avoid a vulnerability
+requests>=2.31.0 # not directly required, pinned by Snyk to avoid a vulnerability
+urllib3>=1.26.18 # not directly required, pinned by Snyk to avoid a vulnerability
</file context>
Suggested change
requests>=2.31.0 # not directly required, pinned by Snyk to avoid a vulnerability
requests>=2.31.0 ; python_version >= '3.7'

apache-airflow-backport-providers-google==2021.3.3
idna>=3.7 # not directly required, pinned by Snyk to avoid a vulnerability
requests>=2.31.0 # not directly required, pinned by Snyk to avoid a vulnerability
urllib3>=1.26.18 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1: Pinning urllib3>=1.26.18 conflicts with the requests version required by Airflow 1.10.x. The requests==2.23.0 package (constrained by Airflow) strictly requires urllib3<1.26,>=1.21.1, so this pin will cause dependency resolution failure. Even if forcibly installed, requests performs a runtime compatibility assertion that urllib3's minor version must be <= 25.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/requirements-composer.txt, line 4:

<comment>Pinning `urllib3>=1.26.18` conflicts with the `requests` version required by Airflow 1.10.x. The `requests==2.23.0` package (constrained by Airflow) strictly requires `urllib3<1.26,>=1.21.1`, so this pin will cause dependency resolution failure. Even if forcibly installed, `requests` performs a runtime compatibility assertion that urllib3's minor version must be <= 25.</comment>

<file context>
@@ -1 +1,4 @@
 apache-airflow-backport-providers-google==2021.3.3
+idna>=3.7 # not directly required, pinned by Snyk to avoid a vulnerability
+requests>=2.31.0 # not directly required, pinned by Snyk to avoid a vulnerability
+urllib3>=1.26.18 # not directly required, pinned by Snyk to avoid a vulnerability
</file context>

@@ -1 +1,4 @@
apache-airflow-backport-providers-google==2021.3.3
idna>=3.7 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1: Pinning idna>=3.7 creates an unsatisfiable dependency conflict. This environment targets Apache Airflow 1.10.x (via the backport providers package), which constrains requests<2.24.0. The requests==2.23.0 package strictly requires idna<3,>=2.5, so idna>=3.7 cannot be co-installed without a dependency resolution failure.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/requirements-composer.txt, line 2:

<comment>Pinning `idna>=3.7` creates an unsatisfiable dependency conflict. This environment targets Apache Airflow 1.10.x (via the backport providers package), which constrains `requests<2.24.0`. The `requests==2.23.0` package strictly requires `idna<3,>=2.5`, so `idna>=3.7` cannot be co-installed without a dependency resolution failure.</comment>

<file context>
@@ -1 +1,4 @@
 apache-airflow-backport-providers-google==2021.3.3
+idna>=3.7 # not directly required, pinned by Snyk to avoid a vulnerability
+requests>=2.31.0 # not directly required, pinned by Snyk to avoid a vulnerability
+urllib3>=1.26.18 # not directly required, pinned by Snyk to avoid a vulnerability
</file context>

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