Skip to content

[Snyk] Security upgrade marshmallow from 3.19.0 to 3.26.2#16

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

[Snyk] Security upgrade marshmallow from 3.19.0 to 3.26.2#16
deargvp1 wants to merge 1 commit into
mainfrom
snyk-fix-dbb9c7832525f3e6f5a1e26c9549f3aa

Conversation

@deargvp1
Copy link
Copy Markdown
Owner

@deargvp1 deargvp1 commented Jun 2, 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/airflow_1_samples/requirements.txt
⚠️ Warning
equests 2.23.0 has requirement urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1, but you have urllib3 2.0.7.
requests 2.23.0 has requirement idna<3,>=2.5, but you have idna 3.10.
pandas-gbq 0.21.0 has requirement google-auth>=2.13.0, but you have google-auth 1.35.0.
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.
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.
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:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.


Summary by cubic

Pin marshmallow to >=3.26.2 in composer/airflow_1_samples/requirements.txt to address a known vulnerability and reduce security risk. No application code changes; only the dependency constraint was added.

Written for commit 7f50f20. Summary will update on new commits.

Review in cubic

…ities

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

coderabbitai Bot commented Jun 2, 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: b3bfa962-6c0f-4e14-ac45-da0760aeb938

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-dbb9c7832525f3e6f5a1e26c9549f3aa

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 marshmallow>=3.26.2 to the requirements file for Airflow 1 samples to address a Snyk vulnerability. The reviewer correctly identified that this change introduces a direct conflict with constraints.txt (which pins marshmallow==2.21.0), leading to installation failures. Additionally, upgrading marshmallow to v3 is a major breaking change incompatible with Airflow 1.10.15.

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.

apache-airflow-backport-providers-cncf-kubernetes==2021.3.3
kubernetes==11.0.0
scipy==1.4.1; python_version > '3.0'
marshmallow>=3.26.2 # 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

Adding marshmallow>=3.26.2 introduces a direct conflict with constraints.txt (line 194), which pins marshmallow==2.21.0. This conflict will cause pip install to fail when installing with the constraints file. Furthermore, upgrading marshmallow from v2 to v3 is a major breaking change that is incompatible with Apache Airflow 1.10.15 and its associated dependencies (such as Flask-AppBuilder 2.3.4).

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.

2 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/airflow_1_samples/requirements.txt">

<violation number="1" location="composer/airflow_1_samples/requirements.txt:8">
P2: `>=3.26.2` is not a pin; it allows uncontrolled upgrades and contradicts the comment.</violation>

<violation number="2" location="composer/airflow_1_samples/requirements.txt:8">
P1: This new requirement conflicts with `constraints.txt`, so constrained installs become unsatisfiable.</violation>
</file>

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

Re-trigger cubic

apache-airflow-backport-providers-cncf-kubernetes==2021.3.3
kubernetes==11.0.0
scipy==1.4.1; python_version > '3.0'
marshmallow>=3.26.2 # 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 new requirement conflicts with constraints.txt, so constrained installs become unsatisfiable.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At composer/airflow_1_samples/requirements.txt, line 8:

<comment>This new requirement conflicts with `constraints.txt`, so constrained installs become unsatisfiable.</comment>

<file context>
@@ -5,3 +5,4 @@ apache-airflow-backport-providers-google==2021.3.3
 apache-airflow-backport-providers-cncf-kubernetes==2021.3.3
 kubernetes==11.0.0
 scipy==1.4.1; python_version > '3.0'
+marshmallow>=3.26.2 # not directly required, pinned by Snyk to avoid a vulnerability
</file context>

apache-airflow-backport-providers-cncf-kubernetes==2021.3.3
kubernetes==11.0.0
scipy==1.4.1; python_version > '3.0'
marshmallow>=3.26.2 # 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.

P2: >=3.26.2 is not a pin; it allows uncontrolled upgrades and contradicts the comment.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At composer/airflow_1_samples/requirements.txt, line 8:

<comment>`>=3.26.2` is not a pin; it allows uncontrolled upgrades and contradicts the comment.</comment>

<file context>
@@ -5,3 +5,4 @@ apache-airflow-backport-providers-google==2021.3.3
 apache-airflow-backport-providers-cncf-kubernetes==2021.3.3
 kubernetes==11.0.0
 scipy==1.4.1; python_version > '3.0'
+marshmallow>=3.26.2 # not directly required, pinned by Snyk to avoid a vulnerability
</file context>
Suggested change
marshmallow>=3.26.2 # not directly required, pinned by Snyk to avoid a vulnerability
marshmallow==3.26.2 # not directly required, pinned by Snyk to avoid a vulnerability

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