{"id":"GHSA-5634-rv46-48jf","aliases":["GHSA-5634-rv46-48jf"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in bleach","summary":"All versions of `bleach` are vulnerable to Cross-Site Scripting. It is possible to bypass the package's HTML sanitization with payloads such as `\"<<script><</script>script>alert('xss');</<script><</script>script>\"` regardless of the passed options. This may allow attackers to execute arbitrary JavaScript in the victim's browser.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"All versions of `bleach` are vulnerable to Cross-Site Scripting. It is possible to bypass the package's HTML sanitization with payloads such as `\"<<script><</script>script>alert('xss');</<script><</script>script>\"` regardless of the passed options. This may allow attackers to execute arbitrary JavaScript in the victim's browser.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","format":"markdown","source":"ghsa"}],"published":"2020-09-03T17:13:45.000Z","modified":"2020-08-31T18:44:51.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0","status":"affected"}],"ecosystem":"npm","package":"bleach","purl":"pkg:npm/bleach","source":"ghsa"}],"references":[{"url":"https://www.npmjs.com/advisories/1034","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5634-rv46-48jf","url":"https://github.com/advisories/GHSA-5634-rv46-48jf","licence":"CC-BY-4.0","modified":"2020-08-31T18:44:51.000Z"}],"updatedAt":"2026-11-25T22:56:44.127Z"}