NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Go modules, #561 by repository stars
Latest stable
v1.0.27
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 6 months
Nearly every release is documented
notes for 2 of 2 stable releases
77 versions withdrawn
withdrawn after publishing
13 years old
440 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Remove SPDX header from LICENSE to enable GitHub auto-detection
Remove SPDX header from LICENSE to enable GitHub auto-detection
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
…we do not implement a HTTP2 server and are not vulnerable but a minor bump can still help reduce noise for those searching for what they need to upgra…
Bumping version and ensuring latest golang.org/x/net as the HTTP rapid reset is triggering primitive vuln scanners, we do not implement a HTTP2 server and are not vulnerable but a minor bump can still help reduce noise for those searching for what they need to upgrade and patch.
Nothing else is in this release aside from the dependency updates and some staticcheck messages being resolved that should not modify behaviour.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Bump golang.org/x/net from 0.10.0 to 0.12.0 by @dependabot in #178
Full Changelog: v1.0.24...v1.0.25
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This is a feature release, there are no security fixes in this release.
This is a feature release, there are no security fixes in this release.
Full Changelog: v1.0.23...v1.0.24
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Upgrade golang.org/x/net to 0.8.0 by @barshociaj in #165 to address CVE-2022-41723 which requires updating the x/net dependency
Full Changelog: v1.0.22...v1.0.23
Nothing published for this version
Nothing published for this version
Nothing published for this version
This is a usability update as some HTML elements are valid without attributes however the default behaviour is to strip these out of an abundance of c
This is not a security update!
This is a usability update as some HTML elements are valid without attributes however the default behaviour is to strip these out of an abundance of caution. The picture element https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture is one such element where it merely changes the browser rendering such that one of the child elements will be rendered.
The picture element was not present in the allowlist when it should have been, and so this release fixes that as per #161 .
Nothing published for this version
Thanks to @Gusted for #151 which fixes a bug that allowed a policy to be defined in a way that input could've allowed an empty and meaningless element
This is an update of dependencies, specifically it updates the HTML parser within go/net/html.
This is an update of dependencies, specifically it updates the HTML parser within go/net/html.
The update removes a capability, Microsoft style comments that allow browser conditionals no longer works. This is due to a fix on the part of the Go team to prevent XSS within HTML comments, and the commit in question is here golang/net@06994584 . There is no easy to see safe way to restore that functionality without adding more risk to those who .AllowComments() and so I am accepting that this non-standard use of HTML comments is no longer supported.
As part of this version, the older release of v1.0.19 is retracted.
css: improve RGB hex color and length matching by @hochhaus in #142
image/svg+xml for data-uri inline imagesFull Changelog: v1.0.18...v1.0.19
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix incorrect handling of iframe SandboxValues by @kiwiz in #138
Full Changelog: v1.0.17...v1.0.18
As per https://github.com/microcosm-cc/bluemonday/issues/135 @kiwiz has added support to bluemonday that allows the iframe element to correctly declar
As per https://github.com/microcosm-cc/bluemonday/issues/135 @kiwiz has added support to bluemonday that allows the iframe element to correctly declare the security attribute sandbox.
You can read about that attribute here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox
No other change is in this release.
Nothing published for this version
Nothing published for this version
A vulnerability was discovered by https://github.com/TomAnthony https://www.tomanthony.co.uk/ which allowed the contents of a style tag to be leaked u…
CVE-2021-42576
A vulnerability was discovered by https://github.com/TomAnthony https://www.tomanthony.co.uk/ which allowed the contents of a style tag to be leaked unsanitized by bluemonday into the HTML output. Further it was demonstrated that if the form elements select and option were allowed by the policy that this could result in a successful XSS.
You would only be vulnerable to if if you allowed style, select and option in your HTML sanitization policy:
p := bluemonday.NewPolicy()
p.AllowElements("style","select")
html := p.Sanitize(`<select><option><style><script>alert(1)</script>`)
fmt.Println(html)
bluemonday very strongly recommends not allowing the style element in a policy. It is fundamentally unsafe as we do not have a CSS sanitizer and the content is passed through unmodified.
bluemonday has been updated to explicitly suppress style and script elements by default even if you do allow them by policy as these are considered unsafe. If you have a use-case for using bluemonday whilst trusting the input then you can assert this via p.AllowUnsafe(true) which will let style and script through if the policy also allows them.
Note: the policies shipped with bluemonday are not vulnerable to this.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
A well crafted HTML attribute had the potential to evade sanitization due to incorrect escaping of the attribute whilst serializing it.
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, ...).
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
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 previo
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.
Nothing published for this version
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 an
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).
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.