GHSA-9r27-994c-4xch
JSON

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

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

Affected

Product or packageVersionsReported by
discord-markdown (npm)before 2.3.1GitHub Advisory Database

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-9r27-994c-4xch changed 2020-02-21CC-BY-4.0