Skip to content

chore: Fix CVEs#6042

Open
aniketpalu wants to merge 3 commits intofeast-dev:masterfrom
aniketpalu:cve-fix-upstream
Open

chore: Fix CVEs#6042
aniketpalu wants to merge 3 commits intofeast-dev:masterfrom
aniketpalu:cve-fix-upstream

Conversation

@aniketpalu
Copy link
Contributor

@aniketpalu aniketpalu commented Mar 2, 2026

What this PR does / why we need it:

  • cryptography ≥ 46.0.5 — bumped from >=43.0,<44 to fix subgroup validation vulnerability in SECT curves
  • python-multipart ≥ 0.0.22 — added as direct dependency to fix path traversal via crafted filenames

Which issue(s) this PR fixes:

Misc


Open with Devin

Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
@aniketpalu aniketpalu requested a review from a team as a code owner March 2, 2026 10:54
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 new potential issue.

View 4 additional findings in Devin Review.

Open in Devin Review

"feast[test, aws, azure, cassandra, clickhouse, couchbase, delta, docling, duckdb, elasticsearch, faiss, gcp, ge, go, grpcio, hazelcast, hbase, ibis, image, k8s, mcp, milvus, mssql, mysql, openlineage, opentelemetry, spark, trino, postgres, pytorch, qdrant, rag, ray, redis, singlestore, snowflake, sqlite_vec]",
"build",
"virtualenv==20.23.0",
"cryptography>=46.0.5",
Copy link
Contributor

Choose a reason for hiding this comment

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

🔴 Conflicting cryptography version constraints between test and ci extras make ci/dev/docs uninstallable

The test extra pins cryptography>=43.0,<44 at pyproject.toml:148, while the ci extra adds cryptography>=46.0.5 at pyproject.toml:155. Since ci depends on feast[test] (pyproject.toml:152), pip must satisfy both constraints simultaneously — but no version exists that is both <44 and >=46.0.5.

Root Cause and Impact

The PR intended to bump cryptography to >=46.0.5 to fix a subgroup validation vulnerability in SECT curves, but only added the new constraint to the ci extra without updating the old >=43.0,<44 constraint in the test extra.

When resolving feast[ci], pip collects requirements from both test (via feast[test] in ci) and ci itself:

  • From test: cryptography>=43.0,<44
  • From ci: cryptography>=46.0.5

The intersection of [43.0, 44.0) and [46.0.5, ∞) is empty, so dependency resolution will fail.

Impact: Installing feast[ci], feast[dev], or feast[docs] will fail with an unsatisfiable dependency error. This breaks the CI pipeline and all developer/documentation installs.

Prompt for agents
In pyproject.toml, the `test` extra at line 148 still has `cryptography>=43.0,<44` which conflicts with the new `cryptography>=46.0.5` added in the `ci` extra at line 155. To fix this:

1. Update pyproject.toml line 148 to change `cryptography>=43.0,<44` to `cryptography>=46.0.5` (or remove the upper bound so it becomes e.g. `cryptography>=46.0.5`).
2. Since both `test` and `ci` would then have the same constraint, you could optionally remove the duplicate `cryptography>=46.0.5` from the `ci` extra at line 155, keeping it only in `test`.

This ensures that `feast[ci]` (which includes `feast[test]`) has consistent, satisfiable cryptography constraints.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Copy link
Collaborator

Choose a reason for hiding this comment

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

please check this @aniketpalu

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