Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Update dependency bleach to v3.3.0 [SECURITY]#80

Closed
renovate[bot] wants to merge 1 commit intomainfrom
renovate/pypi-bleach-vulnerability
Closed

Update dependency bleach to v3.3.0 [SECURITY]#80
renovate[bot] wants to merge 1 commit intomainfrom
renovate/pypi-bleach-vulnerability

Conversation

@renovate
Copy link

@renovate renovate bot commented Dec 21, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
bleach ==3.1.4 -> ==3.3.0 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2021-23980

Impact

A mutation XSS affects users calling bleach.clean with all of:

  • svg or math in the allowed tags
  • p or br in allowed tags
  • style, title, noscript, script, textarea, noframes, iframe, or xmp in allowed tags
  • the keyword argument strip_comments=False

Note: none of the above tags are in the default allowed tags and strip_comments defaults to True.

Patches

Users are encouraged to upgrade to bleach v3.3.0 or greater.

Note: bleach v3.3.0 introduces a breaking change to escape HTML comments by default.

Workarounds

  • modify bleach.clean calls to at least one of:

    • not allow the style, title, noscript, script, textarea, noframes, iframe, or xmp tag
    • not allow svg or math tags
    • not allow p or br tags
    • set strip_comments=True
  • A strong Content-Security-Policy without unsafe-inline and unsafe-eval script-srcs) will also help mitigate the risk.

References

Credits

  • Reported by Yaniv Nizry from the CxSCA AppSec group at Checkmarx
  • Additional eject tags not mentioned in the original advisory and the CSP mitigation line being truncated in the revised advisory reported by Michał Bentkowski at Securitum

For more information

If you have any questions or comments about this advisory:


Release Notes

mozilla/bleach

v3.3.0

Compare Source

Backwards incompatible changes

  • clean escapes HTML comments even when strip_comments=False

Security fixes

Features

None

Bug fixes

None

v3.2.3

Compare Source

Security fixes

None

Features

None

Bug fixes

v3.2.2

Compare Source

Security fixes

None

Features

  • Migrate CI to Github Actions. Thank you @​hugovk.

Bug fixes

v3.2.1

Compare Source

Security fixes

None

Features

None

Bug fixes

  • change linkifier to add rel="nofollow" as documented. Thank you @​mitar.
  • suppress html5lib sanitizer DeprecationWarnings (#​557)

v3.2.0

Compare Source

Security fixes

None

Features

None

Bug fixes

  • html5lib dependency to version 1.1.0. Thank you Sam Sneddon.
  • update tests_website terminology. Thank you Thomas Grainger.

v3.1.5

Compare Source

Security fixes

None

Features

None

Bug fixes

  • replace missing setuptools dependency with packaging. Thank you Benjamin Peterson.

Configuration

📅 Schedule: "" (UTC).

🚦 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, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@github-actions
Copy link

github-actions bot commented Feb 6, 2022

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Feb 6, 2022
@renovate renovate bot force-pushed the renovate/pypi-bleach-vulnerability branch from 0637ea0 to 0820e7a Compare February 7, 2022 12:04
@renovate renovate bot force-pushed the renovate/pypi-bleach-vulnerability branch from 0820e7a to 0fcb3eb Compare February 14, 2022 16:01
@github-actions
Copy link

github-actions bot commented Mar 5, 2022

This PR was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions bot closed this Mar 5, 2022
@renovate
Copy link
Author

renovate bot commented Mar 5, 2022

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will now ignore this update (==3.3.0). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.

@renovate renovate bot deleted the renovate/pypi-bleach-vulnerability branch March 5, 2022 02:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant