{"id":"GHSA-qw3g-35hc-fcrh","summary":"Cross-Site Scripting (XSS) in restify","details":"Affected versions of `restify` are susceptible to a cross-site scripting vulnerability when using URL encoded script tags in a non-existent URL.\n\n## Proof of Concept:\n\nRequest\n```\nhttps://localhost:3000/no5_such3_file7.pl?%22%3E%3Cscript%3Ealert(73541);%3C/script%3E\n```\n\nWill be included in response:\n\n```\u003cscript\u003ealert(73541);\u003c/script\u003e```\n\n\n## Recommendation\n\nUpdate to version 4.1.0 or later.","aliases":["CVE-2017-16018"],"modified":"2023-11-08T03:58:59.951191Z","published":"2018-11-09T17:45:38Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-06-16T21:52:56Z","nvd_published_at":null},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16018"},{"type":"WEB","url":"https://github.com/restify/node-restify/issues/1018"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-qw3g-35hc-fcrh"},{"type":"WEB","url":"https://www.npmjs.com/advisories/314"}],"affected":[{"package":{"name":"restify","ecosystem":"npm","purl":"pkg:npm/restify"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"4.1.0"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 4.0.4","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/11/GHSA-qw3g-35hc-fcrh/GHSA-qw3g-35hc-fcrh.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}