| Property | |
|---|---|
| Language | |
| Severity | |
| CWE | CWE-79: Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’) |
| OWASP | A07:2017 - Cross-Site Scripting (XSS) |
| Confidence Level | Medium |
| Impact Level | Medium |
| Likelihood Level | Low |
Description
Using $sce.trustAs or $sce.trustAsHtml in Angular with user-provided data can allow malicious content to be marked as safe, potentially leading to cross-site scripting (XSS) attacks. This happens if input is not properly sanitized before being trusted.