CVE-2018-3773: metascraper before v5.2.0 vulnerable to stored cross-site scripting
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.62689%
CWE
Published
8/8/2018
Updated
1/31/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 |
---|---|---|---|
metascraper | npm | < 5.2.0 | 5.2.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing HTML escaping in metadata extraction. The patch (PR#169) introduced an 'escape' parameter that applies HTML entity escaping by default. Since the advisory specifies stored XSS via Open Graph properties and the fix involved adding escaping to metadata values, the core vulnerability exists in functions
responsible for returning raw metadata values without sanitization. While exact function
names/paths aren't specified in available data, the pattern of changes in the pull request indicates the vulnerability was present across multiple metadata extraction rules.