CWE•Variant•Incomplete•20 recent CVEs
CWE-80Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Description
The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.
Common consequences
- Confidentiality,Integrity,Availability→Read Application Data,Execute Unauthorized Code or CommandsAn attacker could insert special characters that are processed client-side in the context of the user's session.
Potential mitigations
- 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 hidden fields, cookies, headers, the URL itself, and so forth. A common mistake that leads to continuing XSS vulnerabilities i
- 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-115113.52026-06-08CVE-2026-96466.12026-05-28CVE-2026-448394.82026-05-27CVE-2026-396425.32026-05-26CVE-2025-713102026-05-26CVE-2026-342464.82026-05-19CVE-2026-453465.42026-05-15CVE-2025-153456.12026-05-14CVE-2026-443692026-05-13CVE-2026-442594.62026-05-12CVE-2026-416117.82026-05-12CVE-2026-439397.32026-05-12CVE-2026-439388.12026-05-12CVE-2021-479485.42026-05-10CVE-2026-424516.32026-05-08CVE-2026-420306.12026-05-08CVE-2026-415756.12026-05-08CVE-2026-442644.32026-05-07CVE-2026-60028.82026-05-07CVE-2025-598543.12026-05-06