AngularJS – XSS Vulnerability On Versions Under 1.8.0, Via Nested Option In Select Elements

Impact Area

Security

 

 

 

Severity

High

 

 

 

Affected Element

ServiceNow

UI Script

Salesforce

Static Resource

Rule number #

SN-JSL-ANGULARJS-LESSTHAN-V180-OPT (for ServiceNow)

SF-JSL-ANGULARJS-LESSTHAN-V180-OPT (for Salesforce)

Impact #

The regex-based input HTML replacement may turn sanitized code into unsanitized one. Wrapping “<option>” elements in “<select>” ones changes parsing behavior, leading to possibly unsanitizing code.

Remediation #

Update AngularJS to the latest version.

Time to fix #

30 min

References #

This rule is linked to Common Weakness Enumeration CWE-79 Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’).

Was it helpful ?

THE AI CODE GOVERNANCE BRIEF

Sign up for new updates!