Security mailing lists by PureSourceCode

GHSA-9r27-994c-4xch

HIGH

discord-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

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

Published
24 Feb 2020
Last modified
21 Feb 2020
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm discord-markdown < 2.3.1 2.3.1

References

History

  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 24 Feb 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.