{"id":"CVE-2017-16018","aliases":["EUVD-2018-0773","GHSA-qw3g-35hc-fcrh"],"status":"published","title":"Cross-Site Scripting (XSS) in restify","description":"Restify is a framework for building REST APIs. Restify \u003e=2.0.0 \u003c=4.0.4 using URL encoded script tags in a non-existent URL, an attacker can get script to run in some browsers.","severity":{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00951,"percentile":0.61544,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2018-06-04T19:00:00Z","modified":"2026-10-20T10:48:16Z","fixes":[{"ecosystem":"npm","package":"restify","fixed_in":["4.1.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"restify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"last_affected":"4.0.4"},{"fixed":"4.1.0"}]}]},{"source":"osv","ecosystem":"npm","package":"restify","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"4.1.0"}]}]}],"products":[{"vendor":"hackerone","product":"restify node module"},{"vendor":"restify","product":"restify"}],"references":[{"url":"https://nodesecurity.io/advisories/314","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://github.com/restify/node-restify/issues/1018","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16018","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-qw3g-35hc-fcrh","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/314","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-16018","description":"Restify is a framework for building REST APIs. Restify \u003e=2.0.0 \u003c=4.0.4 using URL encoded script tags in a non-existent URL, an attacker can get script to run in some browsers.","status":"published","published":"2018-06-04T19:00:00Z","modified":"2024-09-16T17:54:46.223Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:33:21.142987Z"}],"euvd":[{"id":"EUVD-2018-0773","description":"Restify is a framework for building REST APIs. Restify \u003e=2.0.0 \u003c=4.0.4 using URL encoded script tags in a non-existent URL, an attacker can get script to run in some browsers.","status":"published","published":"2018-06-04T19:00:00Z","modified":"2024-09-16T17:54:46Z","updated_at":"2026-11-03T00:55:37.247006Z"}],"ghsa":[{"id":"GHSA-qw3g-35hc-fcrh","title":"Cross-Site Scripting (XSS) in restify","description":"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.","status":"published","published":"2018-11-09T17:45:38Z","modified":"2023-09-12T21:05:44Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:05.004935Z"}],"nvd":[{"id":"CVE-2017-16018","description":"Restify is a framework for building REST APIs. Restify \u003e=2.0.0 \u003c=4.0.4 using URL encoded script tags in a non-existent URL, an attacker can get script to run in some browsers.","status":"published","published":"2018-06-04T19:29:01.147Z","modified":"2026-06-17T01:08:39.013Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:04:17.638656Z"}],"osv":[{"id":"CVE-2017-16018","description":"Restify is a framework for building REST APIs. Restify \u003e=2.0.0 \u003c=4.0.4 using URL encoded script tags in a non-existent URL, an attacker can get script to run in some browsers.","status":"published","published":"2018-06-04T19:29:01.147Z","modified":"2026-10-20T10:48:16.828391206Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:04.853379Z"},{"id":"GHSA-qw3g-35hc-fcrh","title":"Cross-Site Scripting (XSS) in restify","description":"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.","status":"published","published":"2018-11-09T17:45:38Z","modified":"2023-11-08T03:58:59.951191Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:55.122811Z"}]}}
