GHSA-xr53-m937-jr9c
high
Cross-Site Scripting in ngx-md
- Severity
- high rating by GitHub
- Published
- Last changed
Description
Versions of ngx-md prior to 6.0.3 are vulnerable to Cross-Site Scripting. Links are not properly restricted to http/https and can contain JavaScript which may lead to arbitrary code execution. Markdown input such as [Click Me](javascript:alert('Injected!'%29) is rendered as a Click Me link that executes JavaScript.
Recommendation
Upgrade to version 6.0.3 or later.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ngx-md (npm) | before 6.0.3 | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-xr53-m937-jr9c changed 2021-10-04 | CC-BY-4.0 |