Impact area
Security
Severity
High
Affected element
ServiceNow
UI Script
Salesforce
Static Resource
Rule number #
SN-JSL-HANDLEBARS-BETWEEN-V2990-V307 (for ServiceNow)
SF-JSL-HANDLEBARS-BETWEEN-V2990-V307 (for Salesforce)
Impact #
This vulnerability is due to an incomplete fix for: Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects. When that happens, this leads to either denial of service by triggering JavaScript exceptions, or it tampers with the application source code to force the code path that the attacker injects, thereby leading to remote code execution.
Remediation
Update the Handlebars JS library to version 3.0.7, 4.1.2, 4.0.14 or higher.
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’).