Skip to content

chore(deps): update dependency bleach to v6#201

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/bleach-6.x
Open

chore(deps): update dependency bleach to v6#201
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/bleach-6.x

Conversation

@renovate

@renovate renovate Bot commented Jan 23, 2023

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
bleach ==5.0.1==6.4.0 age confidence

Release Notes

mozilla/bleach (bleach)

v6.4.0

Compare Source

NOTE: 2026-06-05: Bleach is no longer maintained. There will be no future
releases including for security issues.

See issue: <https://github.com/mozilla/bleach/issues/698>__

Backwards incompatible changes

  • Dropped support for pypy 3.10. (#​764)

Security fixes

  • Fix bug 2023812 / GHSA-8rfp-98v4-mmr6.

    Fix XSS issue with sanitize_uri_value where disallowed schemes with
    Unicode invisible characters wouldn't be rejected.

    For example::

    import bleach
    payload1 = 'Click'
    result1 = bleach.clean(payload1)
    print(repr(result1))

    outputs::

    'Click'

    See the advisory for details.

  • Fix GHSA-gj48-438w-jh9v.

    Fix issue where URI sanitization wasn't happening in formaction attributes.

    See the advisory for details.

Bug fixes

  • Add support for pypy 3.11. (#​764)

  • Drop version max in tinycss2 pin. (#​772)

    This removes one of the things we had to keep checking and updating. Users
    now own the responsibility for correctness with the version of tinycss2
    they're using.

v6.3.0

Compare Source

Backwards incompatible changes

  • Dropped support for Python 3.9. (#​756)

Security fixes

None

Bug fixes

v6.2.0

Compare Source

Backwards incompatible changes

  • Dropped support for Python 3.8. (#​737)

Security fixes

None

Bug fixes

  • Add support for Python 3.13. (#​736)
  • Remove six depdenncy. (#​618)
  • Update known-good versions for tinycss2. (#​732)
  • Fix additional < followed by characters and EOF issues. (#​728)

v6.1.0

Compare Source

Backwards incompatible changes

  • Dropped support for Python 3.7. (#​709)

Security fixes

None

Bug fixes

  • Add support for Python 3.12. (#​710)
  • Fix linkify with arrays in querystring (#​436)
  • Handle more cases with < followed by character data (#​705)
  • Fix entities inside a tags in linkification (#​704)
  • Update cap for tinycss2 to <1.3 (#​702)
  • Updated Sphinx requirement
  • Add dependabot for github actions and update github actions

v6.0.0

Compare Source

Backwards incompatible changes

  • bleach.clean, bleach.sanitizer.Cleaner,
    bleach.html5lib_shim.BleachHTMLParser: the tags and protocols
    arguments were changed from lists to sets.

    Old pre-6.0.0:

    .. code-block:: python

    bleach.clean(
    "some text",
    tags=["a", "p", "img"],

^ ^ list

     protocols=["http", "https"],

^ ^ list

 )

New 6.0.0 and later:

.. code-block:: python

 bleach.clean(
     "some text",
     tags={"a", "p", "img"},

^ ^ set

     protocols={"http", "https"},

^ ^ set

 )
  • bleach.linkify, bleach.linkifier.Linker: the skip_tags and
    recognized_tags arguments were changed from lists to sets.

    Old pre-6.0.0:

    .. code-block:: python

    bleach.linkify(
    "some text",
    skip_tags=["pre"],

^ ^ list

 )

 linker = Linker(
     skip_tags=["pre"],

^ ^ list

     recognized_tags=html5lib_shim.HTML_TAGS + ["custom-element"],

^ ^ ^ list

|

| list concatenation

 )

New 6.0.0 and later:

.. code-block:: python

 bleach.linkify(
     "some text",
     skip_tags={"pre"},

^ ^ set

 )

 linker = Linker(
     skip_tags={"pre"},

^ ^ set

     recognized_tags=html5lib_shim.HTML_TAGS | {"custom-element"},

^ ^ ^ set

|

| union operator

 )
  • bleach.sanitizer.BleachSanitizerFilter: strip_allowed_elements is now
    strip_allowed_tags. We now use "tags" everywhere rather than a mishmash
    of "tags" in some places and "elements" in others.

Security fixes

None

Bug fixes

  • Add support for Python 3.11. (#​675)

  • Fix API weirness in BleachSanitizerFilter. (#​649)

    We're using "tags" instead of "elements" everywhere--no more weird
    overloading of "elements" anymore.

    Also, it no longer calls the superclass constructor.

  • Add warning when css_sanitizer isn't set, but the style
    attribute is allowed. (#​676)

  • Fix linkify handling of character entities. (#​501)

  • Rework dev dependencies to use requirements-dev.txt and
    requirements-flake8.txt instead of extras.

  • Fix project infrastructure to be tox-based so it's easier to have CI
    run the same things we're running in development and with flake8
    in an isolated environment.

  • Update action versions in CI.

  • Switch to f-strings where possible. Make tests parametrized to be
    easier to read/maintain.


Configuration

📅 Schedule: (in timezone Asia/Tehran)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the Dependencies Pull requests that update a dependency file label Jan 23, 2023
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@renovate renovate Bot force-pushed the renovate/bleach-6.x branch from eee8c28 to e67799e Compare March 15, 2023 16:51
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@renovate renovate Bot changed the title Update dependency bleach to v6 chore(deps): update dependency bleach to v6 May 4, 2023
@renovate renovate Bot force-pushed the renovate/bleach-6.x branch from e67799e to ce68d55 Compare October 6, 2023 22:52
@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@renovate renovate Bot force-pushed the renovate/bleach-6.x branch from ce68d55 to 8ce6026 Compare October 29, 2024 18:47
@sonarqubecloud

Copy link
Copy Markdown

@renovate renovate Bot force-pushed the renovate/bleach-6.x branch from 8ce6026 to cfaa934 Compare October 27, 2025 19:04
@sonarqubecloud

Copy link
Copy Markdown

@renovate renovate Bot force-pushed the renovate/bleach-6.x branch from cfaa934 to ad1ad1b Compare June 5, 2026 14:34
@sonarqubecloud

sonarqubecloud Bot commented Jun 5, 2026

Copy link
Copy Markdown

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

Labels

Dependencies Pull requests that update a dependency file

Development

Successfully merging this pull request may close these issues.

0 participants