GHSA-9r27-994c-4xch
HIGHdiscord-html not escaping HTML code blocks when lacking a language identifier
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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | discord-markdown | < 2.3.1 | 2.3.1 |
References
- https://github.com/brussell98/discord-markdown/security/advisories/GHSA-9r27-994c-4xch · WEB
- https://github.com/brussell98/discord-markdown/issues/13 · WEB
- https://github.com/brussell98/discord-markdown/commit/7ce2eb66520815dcf5e97ef2bc8a2d5979da66e7 · WEB
History
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 24 Feb 2020)