Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sec): resolve Dependabot security alerts #32274

Merged
merged 5 commits into from
Feb 17, 2025

Conversation

hainenber
Copy link
Contributor

@hainenber hainenber commented Feb 16, 2025

fix(sec): resolve Dependabot security alerts

SUMMARY

The main purpose is to Trim down the project's security alerts. Most changes are of bumping patch versions so no breaking changes at all, except for changes in Yarn lockfile in docs/ but it's pretty safe as well from first glance.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

… using `uv`

Signed-off-by: hainenber <dotronghai96@gmail.com>
* High: CVE-2024-45296, CVE-2024-52798 (path-to-regexp)
* Low: CVE-2024-47764 (cookie), CVE-2024-43799 (send)

Signed-off-by: hainenber <dotronghai96@gmail.com>
…evelopment.txt`

* Moderate: CVE-2024-56201, CVE-2024-56326 (jinja2), CVE-2024-37891 (urllib3), CVE-2024-1681 (flask-cors)

Signed-off-by: hainenber <dotronghai96@gmail.com>
Copy link

@korbit-ai korbit-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.

I've completed my review and didn't find any issues.

Need a new review? Comment /korbit-review on this PR and I'll review your latest changes.

Korbit Guide: Usage and Customization

Interacting with Korbit

  • You can manually ask Korbit to review your PR using the /korbit-review command in a comment at the root of your PR.
  • You can ask Korbit to generate a new PR description using the /korbit-generate-pr-description command in any comment on your PR.
  • Too many Korbit comments? I can resolve all my comment threads if you use the /korbit-resolve command in any comment on your PR.
  • Chat with Korbit on issues we post by tagging @korbit-ai in your reply.
  • Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.

Customizing Korbit

  • Check out our docs on how you can make Korbit work best for you and your team.
  • Customize Korbit for your organization through the Korbit Console.

Current Korbit Configuration

General Settings
Setting Value
Review Schedule Automatic excluding drafts
Max Issue Count 10
Automatic PR Descriptions
Issue Categories
Category Enabled
Documentation
Logging
Error Handling
Readability
Design
Performance
Security
Functionality

Feedback and Support

Note

Korbit Pro is free for open source projects 🎉

Looking to add Korbit to your team? Get started with a free 2 week trial here

@github-actions github-actions bot added the doc Namespace | Anything related to documentation label Feb 16, 2025
@hainenber hainenber self-assigned this Feb 16, 2025
Copy link

codecov bot commented Feb 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.45%. Comparing base (76d897e) to head (890fb2a).
Report is 1452 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #32274       +/-   ##
===========================================
+ Coverage   60.48%   83.45%   +22.96%     
===========================================
  Files        1931      546     -1385     
  Lines       76236    39097    -37139     
  Branches     8568        0     -8568     
===========================================
- Hits        46114    32629    -13485     
+ Misses      28017     6468    -21549     
+ Partials     2105        0     -2105     
Flag Coverage Δ
hive 48.49% <ø> (-0.67%) ⬇️
javascript ?
mysql 75.85% <ø> (?)
postgres 75.92% <ø> (?)
presto 53.02% <ø> (-0.78%) ⬇️
python 83.45% <ø> (+19.96%) ⬆️
sqlite 75.43% <ø> (?)
unit 61.06% <ø> (+3.44%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

`platformdirs` is upgraded v3.9.1 to unblock dependency constraint

Signed-off-by: hainenber <dotronghai96@gmail.com>
* Low: CVE-2024-47764 (cookie)

Signed-off-by: hainenber <dotronghai96@gmail.com>
@hainenber
Copy link
Contributor Author

hainenber commented Feb 16, 2025

From my calculation, this PR should resolve ALL current High-severity Security Alerts and in general 60% of total vulnerability count.

@@ -113,7 +113,7 @@ bigquery = [
]
clickhouse = ["clickhouse-connect>=0.5.14, <1.0"]
cockroachdb = ["cockroachdb>=0.3.5, <0.4"]
cors = ["flask-cors>=2.0.0"]
cors = ["flask-cors>=4.0.2, <5.0"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

flask-cors is already at v4. I only added an upper bound to avoid accidental major version bumps

Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of these!

@hainenber hainenber merged commit 734f8ed into apache:master Feb 17, 2025
53 checks passed
@hainenber hainenber deleted the sec/fix-sec-alerts branch February 17, 2025 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies:npm doc Namespace | Anything related to documentation size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants