Skip to content

Markup Escaping Disabled

Description

Markup escaping is disabled, which can be used with some template engines to escape disabling of HTML entities, leading to XSS attacks.

Examples

Insecure Code

javascript
$OBJ.escapeMarkup = false;

Secure Code

javascript
$OBJ.escapeMarkup = true;

Remediation

Enable markup escaping to prevent XSS attacks. Set $OBJ.escapeMarkup to true.

Rule Details

FieldValue
IDCODE-0431
CategoryInjection
SeverityMEDIUM
CWECWE-116
ConfidenceHIGH
ImpactHIGH
LikelihoodMEDIUM
ExploitabilityEASY
TagsXSS, template engine
OWASPA7:2017-Cross-Site Scripting (XSS), A03:2021-Injection