Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXF3M2ctMzVoYy1mY3Jo
Cross-Site Scripting (XSS) in restify
Affected versions of restify
are susceptible to a cross-site scripting vulnerability when using URL encoded script tags in a non-existent URL.
Proof of Concept:
Request
https://localhost:3000/no5_such3_file7.pl?%22%3E%3Cscript%3Ealert(73541);%3C/script%3E
Will be included in response:
<script>alert(73541);</script>
Recommendation
Update to version 4.1.0 or later.
Permalink: https://github.com/advisories/GHSA-qw3g-35hc-fcrhJSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXF3M2ctMzVoYy1mY3Jo
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 6 years ago
Updated: about 1 year ago
CVSS Score: 6.1
CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Identifiers: GHSA-qw3g-35hc-fcrh, CVE-2017-16018
References:
- https://nvd.nist.gov/vuln/detail/CVE-2017-16018
- https://github.com/restify/node-restify/issues/1018
- https://github.com/advisories/GHSA-qw3g-35hc-fcrh
- https://www.npmjs.com/advisories/314
Blast Radius: 25.9
Affected Packages
npm:restify
Dependent packages: 1,671Dependent repositories: 17,753
Downloads: 1,131,282 last month
Affected Version Ranges: >= 2.0.0, <= 4.0.4
Fixed in: 4.1.0
All affected versions: 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1.0, 2.1.1, 2.2.0, 2.2.1, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.7.0, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.8.5, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 4.0.0, 4.0.2, 4.0.3, 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