discord-html not escaping HTML code blocks when lacking a language identifier
Priority LOW 38Published · Updated
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
### 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 https://github.com/brussell98/discord-markdown/issues/13
Why it matters now
Fix Fixed discord-markdown (npm): 2.3.1
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | discord-markdown (npm) | before 2.3.1 | 2.3.1 | Patch available | GHSA-9r27-994c-4xch |
- discord-markdown (npm) Vendor— Affected before 2.3.1 Fixed in 2.3.1 Patch available GHSA-9r27-994c-4xch
Remediation
- Fix · GHSA-9r27-994c-4xch discord-markdown (npm) Fixed in 2.3.1 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-9r27-994c-4xch
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences