{"id":"GHSA-xr53-m937-jr9c","aliases":["GHSA-xr53-m937-jr9c"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in ngx-md","summary":"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.\n\n\n## Recommendation\n\nUpgrade to version 6.0.3 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\n\n## Recommendation\n\nUpgrade to version 6.0.3 or later.","format":"markdown","source":"ghsa"}],"published":"2020-09-03T15:49:14.000Z","modified":"2021-10-04T21:05:25.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.0.3"}],"ecosystem":"npm","package":"ngx-md","purl":"pkg:npm/ngx-md","source":"ghsa"}],"references":[{"url":"https://github.com/dimpu/ngx-md/issues/129","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/dimpu/ngx-md","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1485","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xr53-m937-jr9c","url":"https://github.com/advisories/GHSA-xr53-m937-jr9c","licence":"CC-BY-4.0","modified":"2021-10-04T21:05:25.000Z"}],"updatedAt":"2026-11-25T22:56:47.082Z"}