CVE-2019-14863:
AngularJS Cross-site Scripting due to failure to sanitize `xlink.href` attributes
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.45324%
CWE
Published
2/14/2020
Updated
1/27/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
angular | npm | < 1.5.0-beta.1 | 1.5.0-beta.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from AngularJS's $sanitize service using a custom regex-based HTML parser that couldn't properly handle SVG xlink:href attributes. The commit 35a2153 replaced this with a DOM-based parser, explicitly addressing namespace-aware attribute handling. The old regex (ATTR_REGEXP
) and attribute processing logic in htmlParser/parseStartTag
were the root cause, as evidenced by their removal in the patch and the CVE's focus on xlink:href sanitization gaps.