# GHSA-9r27-994c-4xch: discord-html not escaping HTML code blocks when lacking a language identifier

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-02-24T17:34:02.000Z
- Modified: 2020-02-21T20:20:53.000Z

## 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 `&lt;&gt;&amp;` before sending plain code blocks to discord-markdown.

### References
https://github.com/brussell98/discord-markdown/issues/13

(As written by GitHub Advisory Database.)

## Affected

- discord-markdown (npm): before 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)

## Sources

- GitHub Advisory Database: [GHSA-9r27-994c-4xch](https://github.com/advisories/GHSA-9r27-994c-4xch), CC-BY-4.0, modified 2020-02-21

---

Page: https://cve.day/GHSA-9r27-994c-4xch · Whole record: https://cve.day/GHSA-9r27-994c-4xch.json · Rebuilt by cve.day 2026-11-25T22:56:44.967Z
