GHSA-xr53-m937-jr9c

Suggest an improvement
Source
https://github.com/advisories/GHSA-xr53-m937-jr9c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-xr53-m937-jr9c/GHSA-xr53-m937-jr9c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xr53-m937-jr9c
Published
2020-09-03T15:49:14Z
Modified
2021-10-04T21:05:25Z
Summary
Cross-Site Scripting in ngx-md
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-08-31T19:01:03Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / ngx-md

Package

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-xr53-m937-jr9c/GHSA-xr53-m937-jr9c.json"