Advisory

GHSA-4wx3-54gh-9fr9

Also known as: CVE-2024-21535

Summary

Cross site scripting in markdown-to-jsx

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-10-15 06:30 UTC
Modified
2024-10-15 18:12 UTC

Affected packages and fixes

markdown-to-jsx

npm · All systems

Affected

  • introduced 0, fixed 7.4.0 (semver)

Fixed versions

7.4.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences