# GHSA-xr53-m937-jr9c: Cross-Site Scripting in ngx-md

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T15:49:14.000Z
- Modified: 2021-10-04T21:05:25.000Z
- Weaknesses: CWE-79

## 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.

(As written by GitHub Advisory Database.)

## Affected

- ngx-md (npm): before 6.0.3

## References

- <https://github.com/dimpu/ngx-md/issues/129> (web)
- <https://github.com/dimpu/ngx-md> (package)
- <https://www.npmjs.com/advisories/1485> (web)

## Sources

- GitHub Advisory Database: [GHSA-xr53-m937-jr9c](https://github.com/advisories/GHSA-xr53-m937-jr9c), CC-BY-4.0, modified 2021-10-04

---

Page: https://cve.day/GHSA-xr53-m937-jr9c · Whole record: https://cve.day/GHSA-xr53-m937-jr9c.json · Rebuilt by cve.day 2026-11-25T22:56:47.082Z
