github.com/microcosm-cc/bluemonday
Affected
- introduced
0, fixed1.0.16(semver)
Fixed versions
1.0.16
Fix
- Fixed version
1.0.16go get github.com/microcosm-cc/[email protected]
Advisory
Also known as: CVE-2021-42576, GHSA-x95h-979x-cf3j, PYSEC-2021-849
Cross-site scripting via leaked style elements in github.com/microcosm-cc/bluemonday
The bluemonday HTML sanitizer can leak the contents of a "style" element into HTML output, potentially causing XSS vulnerabilities.
The default bluemonday sanitization policies are not vulnerable. Only user-defined policies allowing "select", "style", and "option" elements are affected.
Permitting the "style" element in policies is hazardous, because bluemonday does not contain a CSS sanitizer. Newer versions of bluemonday suppress "style" and "script" elements even when allowed by a policy unless the policy explicitly requests unsafe processing.
Not rated by the source.
0, fixed 1.0.16 (semver)1.0.16
1.0.16go get github.com/microcosm-cc/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: Go Vulnerability Database · CC BY 4.0