Skip to content
Fencer Intel
high —

GHSA-9r27-994c-4xch json

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

published 6y ago modified 6y ago

cvss
—
not scored
cisa kev
Not listed
not in CISA's catalog
epss
—
no score, EPSS covers CVEs only
public exploits
0
none known

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

Patch / fix

  • npm discord-markdown 2.3.1

Is GHSA-9r27-994c-4xch in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Affected packages

ecosystem package affected fixed in
npm discord-markdown
<2.3.1
2.3.1

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.