Advisory

GHSA-9r27-994c-4xch

Also known as: None

Summary

discord-html not escaping HTML code blocks when lacking a language identifier

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-02-24 17:34 UTC
Modified
2020-02-21 20:20 UTC

Affected packages and fixes

discord-markdown

npm · All systems

Affected

  • introduced 0, fixed 2.3.1 (semver)

Fixed versions

2.3.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences