markdown-it is vulnerable to Cross-site Scripting (XSS)
45
Medium Risk
Affected versions of the package are vulnerable to Cross-site Scripting (XSS) through class injection. The markdown-it renderer (lib/renderer.js:36) appends the character class to the language- part of the tag without proper validation, allowing an attacker to inject any class into the code tag.
You are affected if you are using a version that falls within the vulnerable range.
markdown-it is vulnerable to Cross-site Scripting (XSS) in versions 4.0.0 - 4.3.0.
Upgrade the markdown-it library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant