GHSA-4wx3-54gh-9fr9

Suggest an improvement
Source
https://github.com/advisories/GHSA-4wx3-54gh-9fr9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-4wx3-54gh-9fr9/GHSA-4wx3-54gh-9fr9.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-4wx3-54gh-9fr9
Aliases
Published
2024-10-15T06:30:31Z
Modified
2024-10-16T03:12:07.935757Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
  • 5.3 (Medium) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2024-10-15T05:15:11Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-10-15T17:36:26Z"
}
References

Affected packages

npm / markdown-to-jsx

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
7.4.0