CWE•Variant•Draft•19 recent CVEs
CWE-87Improper Neutralization of Alternate XSS Syntax
Description
The product does not neutralize or incorrectly neutralizes user-controlled input for alternate script syntax.
Common consequences
- Confidentiality,Integrity,Availability→Read Application Data,Execute Unauthorized Code or Commands
Potential mitigations
- ImplementationResolve all input to absolute or canonical representations before processing.
- ImplementationCarefully check each input parameter against a rigorous positive specification (allowlist) defining the specific characters and format allowed. All input should be neutralized, not just parameters that the user is supposed to specify, but all data in the request, including tag attributes, hidden fields, cookies, headers, the URL itself, and so forth. A common mistake that leads to continuing XSS v
- Implementation[object Object]
- ImplementationWith Struts, write all data from form beans with the bean's filter attribute set to true.
- ImplementationTo help mitigate XSS attacks against the user's session cookie, set the session cookie to be HttpOnly. In browsers that support the HttpOnly feature (such as more recent versions of Internet Explorer and Firefox), this attribute can prevent the user's session cookie from being accessible to malicious client-side scripts that use document.cookie. This is not a complete solution, since HttpOnly is n
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-552378.82026-06-18CVE-2026-464927.22026-06-09CVE-2026-256886.12026-06-09CVE-2026-453146.12026-05-15CVE-2026-424582026-05-15CVE-2026-422359.62026-05-04CVE-2026-403218.02026-04-17CVE-2025-147326.42026-04-08CVE-2026-227112026-04-07CVE-2026-355347.62026-04-07CVE-2026-335108.82026-04-06CVE-2026-345986.12026-04-02CVE-2024-44596.42024-06-06CVE-2024-26574.42024-05-30CVE-2024-26186.42024-05-24CVE-2024-36666.42024-05-22CVE-2024-35196.12024-05-22CVE-2024-27506.42024-05-02CVE-2023-64464.42024-01-11