Skip to content

Bump github.com/microcosm-cc/bluemonday from 1.0.4 to 1.0.15#52

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/go_modules/github.com/microcosm-cc/bluemonday-1.0.15
Closed

Bump github.com/microcosm-cc/bluemonday from 1.0.4 to 1.0.15#52
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/go_modules/github.com/microcosm-cc/bluemonday-1.0.15

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot bot commented on behalf of github Jul 19, 2021

Bumps github.com/microcosm-cc/bluemonday from 1.0.4 to 1.0.15.

Release notes

Sourced from github.com/microcosm-cc/bluemonday's releases.

Fix XSS vulnerability in HTML attribute parsing

A well crafted HTML attribute had the potential to evade sanitization due to incorrect escaping of the attribute whilst serializing it.

This version resolves that issue. In doing so it will also correctly use & to separate query string values in URLs within HTML attributes (href, src, ...).

Add SanitizeReaderToWriter(r io.Reader, w io.Writer)

No release notes provided.

Policies that accept regexps for matching are now additive

Thanks to @​KN4CK3R for the contribution of a PR that results in multiple Matching() policies on the same attr and element no longer clobber the previous regexps.

Improve data-uri base64 handling, and improve docs structure

No release notes provided.

Improve support for links on all elements

Originally I had only concentrated the link validation on the elements that were safe to link. However people do want to allow some unsafe elements and yet still have the benefits of link validation and sanitization, i.e. allow iframe but still have the src safely validated... these changes allow that.

Additionally I have added tests showing how AllowSchemesWithCustomPolicy can be used to globally allow only links to certain domains, and a test that shows how to apply the AllowAttributes().Matching().OnElements to only allow a given domain on specific elements (i.e. only allow an iframe if is is a YouTube embed).

AllowComments

Adds a new func to allow HTML comments to be allowed. But does not allow CDATA comments which will be treated as plain HTML comments.

Also updates the readme, and the versions of the dependencies that have also updated.

Update x/net to latest version

As per https://nvd.nist.gov/vuln/detail/CVE-2020-28852

Restore support for go < 1.10

No release notes provided.

Support query args without values

URIs that are /page?query are now accepted and not removed.

CORS support and minor cleanup

A merging of a few older PRs the most notable being the addition of CORS support with elements that support crossorigin tags.

Fix regression that permitted script tags to be injected

#111 revealed that we had experienced a regression of an earlier fix and that <script> tags could be injected by relying on the use of the uppercase Cyrillic i, as when Go lowercases this it would map the UTF-8 rune to an ASCII rune. The fix prevents this by retaining the ASCII escaping.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/microcosm-cc/bluemonday](https://github.com/microcosm-cc/bluemonday) from 1.0.4 to 1.0.15.
- [Release notes](https://github.com/microcosm-cc/bluemonday/releases)
- [Commits](microcosm-cc/bluemonday@v1.0.4...v1.0.15)

---
updated-dependencies:
- dependency-name: github.com/microcosm-cc/bluemonday
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 19, 2021
@dependabot @github
Copy link
Copy Markdown
Author

dependabot bot commented on behalf of github Oct 18, 2021

Superseded by #57.

@dependabot dependabot bot closed this Oct 18, 2021
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/microcosm-cc/bluemonday-1.0.15 branch October 18, 2021 17:23
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants