Calls To addError With Disabled Escaping Should Be Avoided

< 1 min read

Impact Area

Security

Severity

High

Affected Element

Apex Class

Rule ID #

SF-0021

Impact #

The message passed to addError will be displayed directly to the user in the UI, making it prime ground for XSS attacks if unescaped.

Remediation #

Ensure that all calls to the addError function are escaped.

Time to fix #

60 min

Updated on March 21, 2025
Was it helpful ?