GHSA-gpvr-g6gh-9mc2

Suggest an improvement
Source
https://github.com/advisories/GHSA-gpvr-g6gh-9mc2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/10/GHSA-gpvr-g6gh-9mc2/GHSA-gpvr-g6gh-9mc2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gpvr-g6gh-9mc2
Aliases
Published
2018-10-23T17:22:54Z
Modified
2023-11-08T03:57:43.877257Z
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
No Charset in Content-Type Header in express
Details

Vulnerable versions of express do not specify a charset field in the content-type header while displaying 400 level response messages. The lack of enforcing user's browser to set correct charset, could be leveraged by an attacker to perform a cross-site scripting attack, using non-standard encodings, like UTF-7.

Recommendation

For express 3.x, update express to version 3.11 or later. For express 4.x, update express to version 4.5 or later.

Database specific
{
    "nvd_published_at": "2017-08-09T18:29:00Z",
    "github_reviewed_at": "2020-06-16T21:37:54Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-79"
    ]
}
References

Affected packages

npm / express

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.11.0

npm / express

Package

Affected ranges

Type
SEMVER
Events
Introduced
4.0.0
Fixed
4.5.0