Skip to content

chore(run/markdown-preview): bump bleach to 6.4.0 to fix dependabot alert#14391

Draft
XrossFox wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
XrossFox:package-update-bleach
Draft

chore(run/markdown-preview): bump bleach to 6.4.0 to fix dependabot alert#14391
XrossFox wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
XrossFox:package-update-bleach

Conversation

@XrossFox

@XrossFox XrossFox commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Description

  • Bumped bleach to 6.4.0 in run/markdown-preview/renderer/requirements.txt to address a Dependabot vulnerability.
  • Removed Python version constraints for bleach and pytest.

Fixes b/532239091

Checklist

Testing

  • I have tested this change on a live environment and verified it works as intended.

Compliance & Style


Post-Approval Actions

  • Please merge this PR for me once it is approved

…alert

 - Bumped `bleach` to 6.4.0 in `run/markdown-preview/renderer/requirements.txt` to address a Dependabot vulnerability.
 - Removed Python version constraints for `bleach` and `pytest`.
@product-auto-label product-auto-label Bot added api: run Issues related to the Cloud Run API. samples Issues that are directly related to samples. labels Jul 7, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request simplifies dependency requirements by removing Python version constraints for pytest in requirements-test.txt and consolidating bleach to version 6.4.0 in requirements.txt. Feedback is provided regarding the bleach library, which is deprecated, suggesting a future migration to an actively maintained alternative like nh3 to ensure long-term security.

Markdown==3.7
bleach==6.2.0; python_version >= "3.9"
bleach==6.1.0; python_version <= "3.8"
bleach==6.4.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.

security-medium medium

The bleach library is officially deprecated and no longer maintained as of June 2026 [3.3.2]. Since it is used for HTML sanitization (a security-critical task), please consider migrating to an actively maintained alternative like nh3 in a future pull request to ensure long-term security and support.

References
  1. When upgrading core dependencies, if an incompatible library is no longer supported, proceed with the core upgrade and defer the refactoring or replacement of the unsupported library to a later time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: run Issues related to the Cloud Run API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant