{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-21535","id":"CVE-2024-21535","title":"Cross site scripting in markdown-to-jsx","description":"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.","descriptionLong":"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.","published":"2024-10-15T05:00:03.815Z","updated":"2026-10-28T02:31:14.951639616Z","reserved":"2023-12-22T12:33:20.123Z","status":"Analyzed","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","rating":"medium","source":"snyk"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","rating":"medium","source":"snyk"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"snyk.io"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["markdown-to-jsx"],"affectedProducts":[{"vendor":"n/a","product":"markdown-to-jsx","defaultStatus":null,"versions":[{"version":"0","lessThan":"7.4.0","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"markdown-to-jsx","purl":"pkg:npm/markdown-to-jsx","ranges":["<7.4.0"],"fixed":["7.4.0"],"advisory":"GHSA-4wx3-54gh-9fr9"}],"cwes":["CWE-79"],"aliases":["GHSA-4wx3-54gh-9fr9"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886","tags":["Third Party Advisory","web"]},{"url":"https://github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555a","tags":["Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/21xxx/CVE-2024-21535.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21535","tags":["advisory"]},{"url":"https://github.com/quantizor/markdown-to-jsx","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00518,"epssPercentile":0.44789,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-21535","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21535","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-21535","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4wx3-54gh-9fr9","ok":true,"note":"GHSA-4wx3-54gh-9fr9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-21535","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}