~ / search / GHSA-4wx3-54gh-9fr9

GHSA-4wx3-54gh-9fr9

Cross site scripting in markdown-to-jsx

Source: GitHub Advisory Database (reviewed) Moderate CVE-2024-21535

Packages

EcosystemPackageAffectedFixed in
npm markdown-to-jsx < 7.4.0 7.4.0

Details

As written in the advisory (Markdown source, shown as plain text).

Versions of the package markdown-to-jsx before 7.4.0 are vulnerable to Cross-site Scripting (XSS) via the src property due to improper input sanitization. An attacker can execute arbitrary code by injecting a malicious iframe element in the markdown.

References

External links from the advisory. They lead to third-party sites.