GHSA-qw3g-35hc-fcrh

Suggest an improvement
Source
https://github.com/advisories/GHSA-qw3g-35hc-fcrh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/11/GHSA-qw3g-35hc-fcrh/GHSA-qw3g-35hc-fcrh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qw3g-35hc-fcrh
Aliases
Published
2018-11-09T17:45:38Z
Modified
2023-11-08T03:58:59.951191Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
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.

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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T21:52:56Z"
}
References

Affected packages

npm / restify

Package

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
4.1.0

Database specific

{
    "last_known_affected_version_range": "<= 4.0.4"
}