Skip to content

PR#39949

Closed
amrit-sahu987 wants to merge 14 commits into
apache:masterfrom
amrit-sahu987:master
Closed

PR#39949
amrit-sahu987 wants to merge 14 commits into
apache:masterfrom
amrit-sahu987:master

Conversation

@amrit-sahu987
Copy link
Copy Markdown

SUMMARY

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

amrit-sahu987 and others added 4 commits May 7, 2026 10:03
…ulation

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
chore: downgrade requests from 2.33.0 to 2.28.2 for vulnerability simulation
…lict

The pinned requests==2.28.2 requires charset-normalizer<3, conflicting with
charset-normalizer==3.4.2 also pinned in requirements/base.txt. Bumping
requests to 2.33.1 (which allows charset_normalizer<4,>=2) resolves the
ResolutionImpossible error reported by pip-audit.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
[DEVIN-AUTO] Fix CI Security Scan Failure (46490ffd)
@amrit-sahu987 amrit-sahu987 marked this pull request as draft May 7, 2026 12:29
Resolves security scan failures reported by pip-audit:
- flask 2.3.3 -> 3.1.3 (CVE-2026-27205)
- mako 1.3.11 -> 1.3.12 (CVE-2026-44307)

Pins added to requirements/base.in and propagated through
requirements/base.txt and requirements/development.txt via
scripts/uv-pip-compile.sh.

[DEVIN-AUTO] Fix CI Security Scan Failure (e88ad58f)
Comment thread requirements/development.txt Outdated
# jsonschema-path
# jsonschema-specifications
requests==2.33.0
requests==2.28.2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟠 Architect Review — HIGH

requirements/development.txt pins requests==2.28.2 while requirements/base.txt pins requests==2.33.1, violating requirements/README.md's guarantee that all shared library versions between base.txt and development.txt must fully match.

Suggestion: Regenerate requirements/development.txt from development.in using the documented uv pip compile flow, ensuring requests resolves to 2.33.1 to match base.txt, and verify that pip install -r requirements/development.txt succeeds.

Fix in Cursor | Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is an **Architect / Logical Review** comment left during a code review. These reviews are first-class, important findings — not optional suggestions. Do NOT dismiss this as a 'big architectural change' just because the title says architect review; most of these can be resolved with a small, localized fix once the intent is understood.

**Path:** requirements/development.txt
**Line:** 869:869
**Comment:**
	*HIGH: requirements/development.txt pins requests==2.28.2 while requirements/base.txt pins requests==2.33.1, violating requirements/README.md's guarantee that all shared library versions between base.txt and development.txt must fully match.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
If a suggested approach is provided above, use it as the authoritative instruction. If no explicit code suggestion is given, you MUST still draft and apply your own minimal, localized fix — do not punt back with 'no suggestion provided, review manually'. Keep the change as small as possible: add a guard clause, gate on a loading state, reorder an await, wrap in a conditional, etc. Do not refactor surrounding code or expand scope beyond the finding.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix

[DEVIN-AUTO] fix(deps): bump flask and mako to patch CI security scan failures
@pull-request-size pull-request-size Bot added size/M and removed size/XS labels May 7, 2026
@bito-code-review
Copy link
Copy Markdown
Contributor

The flagged issue is correct: requirements/development.txt pins requests==2.28.2 while requirements/base.txt pins requests==2.33.1, violating the README.md guarantee for matching shared library versions. To resolve, update the requests version in development.txt to 2.33.1. No other comments found in the PR.

requirements/development.txt

requests==2.33.1

Copy link
Copy Markdown
Contributor

@bito-code-review bito-code-review 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 Agent Run #593264

Actionable Suggestions - 1
  • requirements/base.in - 1
    • CWE-1395: Vulnerable Dependency Version · Line 37-37
Review Details
  • Files reviewed - 3 · Commit Range: 0469d0b..ca3e6aa
    • requirements/base.in
    • requirements/base.txt
    • requirements/development.txt
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

Comment thread requirements/base.in
# Security: CVE-2024-52338 (CRITICAL) - Deserialization of untrusted data in IPC/Parquet readers
pyarrow>=20.0.0,<21.0.0
# Security: CVE-2026-27459 - pyopenssl certificate validation
pyopenssl>=26.0.0,<27.0.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CWE-1395: Vulnerable Dependency Version

This change downgrades the requests library to versions >=2.28.0, which includes vulnerable versions for CVE-2026-25645 (fixed in 2.33.0+). Although the project does not appear to use the affected extract_zipped_paths function, maintaining secure dependency versions is best practice. The security comment suggests this is a fix, but it has the opposite effect. (CWE-1395)

Code suggestion
Check the AI-generated fix before applying
Suggested change
pyopenssl>=26.0.0,<27.0.0
requests>=2.33.0,<3.0.0

Code Review Run #593264


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

amrit-sahu987 and others added 3 commits May 7, 2026 12:57
…an conflict

The pinned charset-normalizer==3.4.2 conflicted with the resolved version
required transitively via requests==2.33.1 (line 366 of requirements/base.txt),
causing pip-audit to report a ResolutionImpossible error.

Bumping charset-normalizer to 3.4.7 (still satisfying requests' <4,>=2 spec)
restores a clean dependency resolution. development.txt updated to keep the
pin in sync with base.txt (it is constrained against base-constraint.txt).

[DEVIN-AUTO] Fix CI Security Scan Failure (c0bcbc84)

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
fix(deps): bump charset-normalizer to 3.4.7 to resolve CI security scan conflict
Updated the security scanner workflow to improve vulnerability detection and reporting.
@github-actions github-actions Bot added the github_actions Pull requests that update GitHub Actions code label May 7, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented May 7, 2026

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit c9683d9
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/69fcaa4d30916e0007d5b275
😎 Deploy Preview https://deploy-preview-39949--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

amrit-sahu987 and others added 2 commits May 7, 2026 15:11
…lict

The CI security scanner (pip-audit) failed because requests==2.28.1
constrains charset-normalizer<3, conflicting with the pinned
charset-normalizer==3.4.7 in requirements/base.txt.

Bumping requests to 2.32.4 (which supports charset-normalizer<4)
resolves the dependency conflict and also addresses CVE-2024-35195
(Session.verify=False) in older requests versions.

[DEVIN-AUTO] Fix CI Security Scan Failure (132d1812)

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
fix(deps): bump requests to 2.32.4 to resolve charset-normalizer conflict
@hainenber
Copy link
Copy Markdown
Contributor

hi there, I appreciate the enthusiasm but honestly, granting AI agents for continuously mitigating of security vulnerabilities is a ticking time bomb both financially and logically. Plus, bumping major version for critical lib like Flask isn't as easy as it appears to be.

I'd be closing this off when there are less items bound into 1 PR and more description to give us heads-up on the intention.

@hainenber hainenber closed this May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants