{ "id": "CVE-2024-21535", "sourceIdentifier": "report@snyk.io", "published": "2024-10-15T05:15:11.530", "lastModified": "2024-10-17T20:36:29.213", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [ { "lang": "en", "value": "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." }, { "lang": "es", "value": "Las versiones del paquete markdown-to-jsx anteriores a la 7.4.0 son vulnerables a ataques de Cross Site Scripting (XSS) a trav\u00e9s de la propiedad src debido a una desinfecci\u00f3n incorrecta de la entrada. Un atacante puede ejecutar c\u00f3digo arbitrario inyectando un elemento iframe malicioso en el paquete markdown." } ], "metrics": { "cvssMetricV31": [ { "source": "report@snyk.io", "type": "Secondary", "cvssData": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE" }, "exploitabilityScore": 2.8, "impactScore": 2.7 }, { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE" }, "exploitabilityScore": 2.8, "impactScore": 2.7 } ] }, "weaknesses": [ { "source": "report@snyk.io", "type": "Secondary", "description": [ { "lang": "en", "value": "CWE-79" } ] }, { "source": "nvd@nist.gov", "type": "Primary", "description": [ { "lang": "en", "value": "CWE-79" } ] } ], "configurations": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:a:quantizor:markdown-to-jsx:*:*:*:*:*:*:*:*", "versionEndExcluding": "7.4.0", "matchCriteriaId": "1CC356E7-712F-4A55-BCE1-0CE9C450AC06" } ] } ] } ], "references": [ { "url": "https://github.com/quantizor/markdown-to-jsx/commit/8eb74da825c0d8d2e9508d73c672bcae36ba555a", "source": "report@snyk.io", "tags": [ "Patch" ] }, { "url": "https://security.snyk.io/vuln/SNYK-JS-MARKDOWNTOJSX-6258886", "source": "report@snyk.io", "tags": [ "Third Party Advisory" ] } ] }