CWE-86β€”Improper Neutralization of Invalid Characters in Identifiers in Web Pages

PUBLISHEDweakness record
released 2006-07-19 Β· last modified 2025-12-11

Metadata

CWE ID:
CWE-86
Abstraction:
Variant
Structure:
Simple
Status:
Draft
Release Date:
2006-07-19
Latest Modification Date:
2025-12-11

Weakness Name

Improper Neutralization of Invalid Characters in Identifiers in Web Pages

Description

The product does not neutralize or incorrectly neutralizes invalid characters or byte sequences in the middle of tag names, URI schemes, and other identifiers.

Some web browsers may remove these sequences, resulting in output that may have unintended control implications. For example, the product may attempt to remove a "javascript:" URI scheme, but a "java%00script:" URI may bypass this check and still be rendered as active javascript by some browsers, allowing XSS or other attacks.

Common Consequences

Scope:
Confidentiality, Integrity, Availability
Impact:
Read Application Data, Execute Unauthorized Code or Commands

Related Weaknesses