Skip to content

[Snyk] Security upgrade idna from 2.10 to 3.7#7

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

[Snyk] Security upgrade idna from 2.10 to 3.7#7
deargvp1 wants to merge 1 commit into
mainfrom
snyk-fix-4ca4582aa926c0b204a02ad8c1d5c6b9

Conversation

@deargvp1
Copy link
Copy Markdown
Owner

@deargvp1 deargvp1 commented May 22, 2026

snyk-top-banner

Snyk has created this PR to fix 1 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.txt
⚠️ Warning
equests 2.23.0 has requirement idna<3,>=2.5, but you have idna 3.10.
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.
grpcio-status 1.62.3 has requirement protobuf>=4.21.6, but you have protobuf 3.20.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-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-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-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-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-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 grpc-google-iam-v1<1.0.0,>=0.14.0, but you have grpc-google-iam-v1 0.12.7.
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-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 1.3.0 has requirement google-auth!=2.43.0,!=2.44.0,!=2.45.0,<3.0.0,>=2.15.0, but you have google-auth 1.35.0.
google-ads 7.0.0 has requirement google-auth-oauthlib<1.0.0,>=0.3.0, but you have google-auth-oauthlib 1.3.0.
google-ads 7.0.0 has requirement PyYAML<6.0,>=5.1, but you have PyYAML 6.0.1.
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 email-validator<2,>=1.0.5, but you have email-validator 2.1.0.
Flask-AppBuilder 2.3.4 has requirement marshmallow<3.0.0,>=2.18.0, but you have marshmallow 3.19.0.
apache-airflow 1.10.15 requires thrift, 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:

🦉 Resource Exhaustion


Summary by cubic

Added idna>=3.7 to composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/requirements.txt to remediate SNYK-PYTHON-IDNA-6597975 in transitive dependencies.

  • Migration
    • If your environment installs requests 2.23.0 (requires idna<3), upgrade requests to a version that supports idna 3.x (e.g., >=2.28) or adjust conflicting pins.

Written for commit 8d46eae. Summary will update on new commits. Review in cubic

…nts.txt to reduce vulnerabilities

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-IDNA-6597975
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 22, 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: 2316f07b-53ab-474f-9352-57c25bfe1296

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-4ca4582aa926c0b204a02ad8c1d5c6b9

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 idna>=3.7 to the requirements file to address a security vulnerability. However, a critical dependency conflict was identified, as this version of idna is incompatible with the current requests library version (2.23.0). To resolve this, the requests library should also be upgraded to version 2.26.0 or higher.

# see https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html#constraints-files
apache-airflow[gcp]==1.10.15 # updates beyond 1.10.15 are untested with this code
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.

critical

This change introduces a critical dependency conflict. While intended to fix SNYK-PYTHON-IDNA-6597975, upgrading to idna>=3.7 is incompatible with requests < 2.26.0. The PR description confirms that requests 2.23.0 is present in the environment, which strictly requires idna<3. This conflict will cause the installation to fail. To resolve this while addressing the security vulnerability, requests must also be upgraded to version 2.26.0 or higher, assuming it remains compatible with apache-airflow==1.10.15.

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.

1 issue 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.txt">

<violation number="1" location="composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/requirements.txt:5">
P1: This `idna>=3.7` pin conflicts with `requests 2.23.0` (a dependency of `apache-airflow==1.10.15`), which strictly requires `idna<3,>=2.5`. The `requests` library only added support for `idna` 3.x in version 2.26.0. This conflict will cause `pip install` to fail with a dependency resolution error. To fix the vulnerability without breaking installation, `requests` must also be upgraded to at least 2.26.0 (and compatibility with airflow 1.10.15 must be verified).</violation>
</file>

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

Re-trigger cubic

# see https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html#constraints-files
apache-airflow[gcp]==1.10.15 # updates beyond 1.10.15 are untested with this code
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: This idna>=3.7 pin conflicts with requests 2.23.0 (a dependency of apache-airflow==1.10.15), which strictly requires idna<3,>=2.5. The requests library only added support for idna 3.x in version 2.26.0. This conflict will cause pip install to fail with a dependency resolution error. To fix the vulnerability without breaking installation, requests must also be upgraded to at least 2.26.0 (and compatibility with airflow 1.10.15 must be verified).

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.txt, line 5:

<comment>This `idna>=3.7` pin conflicts with `requests 2.23.0` (a dependency of `apache-airflow==1.10.15`), which strictly requires `idna<3,>=2.5`. The `requests` library only added support for `idna` 3.x in version 2.26.0. This conflict will cause `pip install` to fail with a dependency resolution error. To fix the vulnerability without breaking installation, `requests` must also be upgraded to at least 2.26.0 (and compatibility with airflow 1.10.15 must be verified).</comment>

<file context>
@@ -2,3 +2,4 @@
 # see https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html#constraints-files
 apache-airflow[gcp]==1.10.15 # updates beyond 1.10.15 are untested with this code
 apache-airflow-backport-providers-google==2021.3.3
+idna>=3.7 # 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