Advisory

GHSA-gpvr-g6gh-9mc2

Also known as: CVE-2014-6393

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2018-10-23 17:22 UTC
Modified
2023-11-08 03:57 UTC

Affected packages and fixes

express

npm · All systems

Affected

  • introduced 0, fixed 3.11.0 (semver)

Fixed versions

3.11.0

Fix

express

npm · All systems

Affected

  • introduced 4.0.0, fixed 4.5.0 (semver)

Fixed versions

4.5.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences