Description
The Express web framework before 3.11 and 4.x before 4.5 for Node.js does not provide a charset field in HTTP Content-Type headers in 400 level responses, which might allow remote attackers to conduct cross-site scripting (XSS) attacks via characters in a non-standard encoding.
Remediation
References
https://bugzilla.redhat.com/show_bug.cgi?id=1203190
https://nodesecurity.io/advisories/express-no-charset-in-content-type-header
Related Vulnerabilities
CVE-2020-5263 Vulnerability in npm package auth0-js
CVE-2022-41928 Vulnerability in maven package org.xwiki.platform:xwiki-platform-attachment-ui
CVE-2019-15477 Vulnerability in maven package org.jooby:jooby
CVE-2021-21345 Vulnerability in maven package com.thoughtworks.xstream:xstream
CVE-2023-49068 Vulnerability in maven package org.apache.dolphinscheduler:dolphinscheduler-api