GHSA-9r27-994c-4xch
high
discord-html not escaping HTML code blocks when lacking a language identifier
- Severity
- high rating by GitHub
- Published
- Last changed
Description
Impact
Any website using discord-markdown with user-generated markdown is vulnerable to having code injected into the page where the markdown is displayed.
Patches
This has been patched in version 2.3.1
Workarounds
Escape the characters <>& before sending plain code blocks to discord-markdown.
References
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| discord-markdown (npm) | before 2.3.1 | GitHub Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-9r27-994c-4xch changed 2020-02-21 | CC-BY-4.0 |